With the device firmware setup completed, it's now time to focus on developing the application that will process the device events and send commands so that John's plant will get watered when he's not home.
The code for the application will run on the IBM Cloud Platform (Bluemix). Since this is just an example application, we're going to use environment variables to store parameters (temperature and soil moisture thresholds).
- To create an application in IBM Cloud, access https://console.bluemix.net, select the
Create Resourceoption, and select
Cloud Foundry Appsin the left menu, followed by SDK for Node.js. After doing this, name the application and create the runtime:
- When application creation is complete, select
in the left menu and create a connection to the IoT service: