python version : 3.7.3
This python script is will send data directly to properties of thing of ThingWorx IoT platform. It using REST API of Thingworx by PUT method.
The data is json type.
- Clone this git to your folder.
- Create Thing in Thingworx and add properties what your want.
- Create ApplicationKey in Thingworx and set user name reference to your user. E.g. Administrator.
- Edit parameter in script. Host name # E.g. IP address of Thingworx server or localhost if you using same server. ApplicationKey # Hash key from topic 3. ThingName # Thing Name from topic 2. Data # edit strData
- run script. If you config correct, This script will be reply "<Response [200]>"
- All data for developer : https://developer.thingworx.com/
- Thingworx REST API Doc : https://developer.thingworx.com/en/resources/apis