Arduino library using REST API to send and receive data to Thingworx platform 8. It allows to send and receive multiple variables with the provided methods.
- Arduino MKR1000 or Arduino WiFi101 Shield.
- Arduino UNO or Arduino Mega if using WiFi101 Shield.
- Arduino IDE 1.8.3 or higher.
- Thingworx Arduino WiFi101 Library.
- Thingworx Platform 8.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/x-www-form-urlencoded
Content-Length: 27
Connection: close
appKey: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
MY_PARAM1=123&MY_PARAM2=abc