Push data to ThingsBoard
n = thingsboard_postData(url,posttoken,jsonbody)
The ThingsBoard platform url
Device post token
A data struct containing the keys and values
Status code
Push data to a device in ThingsBoard. The device post token is different from the token used in retrieving data.
// If your Thingsboard device has an access token of ABC123 acc_token = "ABC123" data = struct("temp",24,"humidity",55) n = thingsboard_postData(url,acc_token,data) | ![]() | ![]() |