Upload the Sample Device Models
To complete the Oracle Fusion Cloud IoT Intelligent Applications samples, the humidity and temperature sensor device models must be uploaded to your Oracle Fusion Cloud IoT Intelligent Applications instance.
The humidity sensor device model sends a humidity reading every 5 seconds. When the maximum threshold is set, the maximum threshold value and the humidity level are included in subsequent data messages. When the default maximum humidity threshold of 60% is reached or exceeded, an alert is sent.
The temperature sensor device model sends a temperature reading every 5 seconds. The minimum and maximum temperature values are included with the outgoing data message, when the device is turned on, and whenever a value changes. When the maximum or minimum temperature thresholds are set, the maximum and minimum threshold values and the current temperature are included in subsequent data messages. When the minimum or maximum temperature thresholds are reached or exceeded, a tooCold
or tooHot
alert is sent. Optionally, the threshold values can be included in the alert message (the default is NO). The default thresholds for the minimum and maximum temperature are 0 and 65 degrees.
When a REST call is invoked, the minimum and maximum temperature values are reset to the current temperature. When a device is turned off, data and alert messages are not sent until it is turned on.