Sending Data to Device Cloud from Your Device in Linux
You can run the iot-simple-telemetry.py application to send data from your device to Device Cloud.
The application you run to send data has its own thing definition and uses a unique application token that corresponds to the thing definition. Therefore, as part of this procedure, you need to generate a new, application-specific connection configuration file that contains the matching application token. This procedure assumes that the application and thing definition for the sample application were already defined in Device Cloud or you added them before you generated the device manager configuration file.
You need the following:
-
your user name, password, and URL for Device Cloud
-
the hdc_simple_telemetry_def thing definition and hdc_simple_telemetry_app application created in Device Cloud (see Setting Up the Device Cloud Definitions in Linux)
-
the device_id file in the yourLocalDir/device_cloud directory (see Running the Device Manager Application in Linux)
-
the endpoint of your organization from the Developer page on the Management Portal (see Generating the Device Manager Connection Configuration File in Linux)