Skip to content

2.4 Sending Measurements

ashansenevirathne edited this page Apr 8, 2018 · 12 revisions

Lets send some measurements using the device that you have just registered. We'll run through the steps involved to get ambient light data through from your device to the platform.

First, grab the SendLightMeasurementDevice script contained in the Telstra example set (found here)

Change the hostname to again match that of your team, before loading this script onto your device. SendLightMeasurmentData

Secondly, open the serial monitor and send the command "send"

SendCommand

Go to Cumulocity 'Data Explorer' and select your device and add data measurements.
DataExplorer AddDataPoint

Now you can plot your data in Data Explorer. Visualise

You're also at the stage where you can run the board on its own, independent from your pc/laptop. Maybe you'd like to stick it in your fridge to check if the light really turns off when you shut the door! You can do this with the help of the battery and display readings on OLED module (Example script can be found here).

OLEDBATTERY

Clone this wiki locally