BBFF
e.g. BBFF-ABCDEFGHIJKLMNOPQRSTUVWXYZ0123
You can find your token when selecting your profile in the top-right corner and select API Credentials.iotfleet1
iot-sensor
The device label is the name of your device as registered in Ubidots. Visit your Devices page in the Ubidots console, and select the + sign at the top right corner to add a new device and provide its name.AT+USOCR
AT+USOCO
AT+USOST
AT+USOCR=<protocol>
Replace <protocol>
with 17
for UDP, use 6
for TCP.+USOCR: 0
AT+USOCO=<socket>,"<remote_addr>",<remote_port>
<socket>
with an identifier, e.g. 0
<remote_addr>
with Ubidots' IP address or domain name: 169.55.61.243
, or industrial.api.ubidots.com
<remote_port>
with 9012
(no TLS) or 9812
(TLS) OK
iotfleet1
BBFF-ABCDEFGHIJKLMNOPQRSTUVWXYZ0123
iotsensor
temperature
21
+USOST: 0,80
AT+UHTTP
AT+UHTTP
AT+UDWNFILE
AT+UHTTPC
<profile_id>
with an identifier, e.g. 0
<param_val>
with Ubidots' IP address or domain name: industrial.api.ubidots.com
AT+UHTTP=0,1
. Expected response:<profile_id>
with the same identifier you used before, e.g. 0
<param_val>
with a counter, going up for each new header you set, followed by the custom header, e.g. "0:X-Auth-Token:BBFF-ABCDEFGHIJKLMNOPQRSTUVWXYZ0123"
<file_name>
with any name, e.g. sensordata.json
<size>
with the exact number of characters in the file.sensordata.json
and add the sensordata, for example: {"temperature": 19,"humidity": 90,"pressure": 78}
<profile_id>
with the same identifier you used before, e.g. 0
<url path>
starting with /
, e.g. /api/v1.6/devices/{Device Label}
<responseFilename>
with any name to store the server response, e.g. data.txt
<filesystemName>
with the file containing the data you want to send, e.g. sensordata.json
+UUHTTPCR: 0,4,1