Python language version of Datonis Agent SDK
Our python agent need 'requests' module for its HTTP communication, use following command to install it.
pip install requests
You can then run example as follows:
python sample.py
Modify the sample.py file as follows:
- Add appropriate access_key and secret_key from the downloded key_pair in GatewayConfig function
- Add Thing id, Thing name, Thing Description of the thing whose data you want to send to Datonis.
- Finally add the metrics name and its value. You can also set waypoints and send it to Datonis
- Data can be send using HTTP or MQTT protocol for which appropriate funtion should be used.