Project – IoT and event processing with IBM Cloud functions
The purpose of this project is to collect temperature information sent by an IoT sensor, persistently store it for future analysis, and also send out near-real-time alerts when the temperature crosses a specific threshold.
IoT devices send their information to IoT platforms using the MQTT protocol. Most IoT clouds will provide a gateway that acts as an MQTT broker and receive these messages. Devices publish their sensor information to the MQTT topic and then the data can be consumed by various applications for business processing.
The IoT platform provided by IBM Cloud is called the IBM Watson IoT Platform. Once you provision an instance of this platform on the cloud, you can use the details to obtain the MQTT gateway address as well as add a device to the platform. This device will represent our pseudo-IoT device, which will be a heat sensor that will send out the current timestamp and temperature at defined...