Arduino library using REST API to send and receive data to Thingworx platform 9. It allows to send and receive multiple variables with the provided methods.
- ESP32 board (We used the ESP32 WROOM 32 DevKit V1 board)
- Arduino core for ESP32 v2.0.14 or higher
- Arduino IDE 1.8.19 or higher.
- Thingworx IIoT Platform 9.0 or higher
- ArduinoJson Library for getThingWorxJSONLib demo
The REST API implemented in this library follows this format:
GET request
GET /Thingworx/Things/MyThing/Properties/MyProperty HTTP/1.1
Host: thingworx.myserver.com
Accept: application/json
Connection: close
appKey: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
POST request
POST /Thingworx/Things/MyThing/Services/MyService HTTP/1.1
Host: thingworx.myserver.com
Content-Type: application/json
Content-Length: 27
Connection: close
appKey: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
{"MY_PARAM1":123,"MY_PARAM2":abc}