Hello!
I’m creating end-user devices with API. Only after this “pre configuration” end-user hardware will be able to send dots to its organization.
My commands use this configurations:
topic: http://industrial.api.ubidots.com/api/v1.6/datasources/?token=<organization_token>&type=<device_type>
payload:
{
“name”: “Device1”,
“description”: “Mary’s Device1”,
“context”: {
“version”: “v3.1-dev-661-gf586f5e6”,
“MAC”: “B4:E6:2D:BF:61:E1”
},
“tags”: [
“Internal”,
“tinyDevice_v1”
]
}
WIth HTTP post command, I get return code 201 and the device is created.
But, there are 3 situations:
- its Label is assigned to “Internal”, the first Tags item, instead of “name”;
- the context items are not added to the device, none of them; and
- it does not create the variables configured on the device type.
Is this HTTP post command correct? Should it work properly? That is, use “name” to create the “label”, create all context items and create the device type variables?
Best regards,
Cristiano.