IoTConnect
0x00 – OK
0x01 – Device Not Registered
0x02 – Auto Register
0x03 – Device Not Found
0x04 – Device Inactive
0x05 – Object Moved
{
“code”: “CODE”,
“name”: “NAME”,
“tag”: “TAG(to enable GatewaySupport) | NULL”,
“attributes”: [
{
“name”: “attr”,
“type”: “number | string”,
“tag”: “TAG(if GatewaySupport enabled) | NULL”
},
{
“name”: “parent”,
“type”: “object”,
“tag”: “TAG(if GatewaySupport enabled) | NULL”,
“childs”: [
{
“name”: “childattr”,
“type”: “number | string”
}
]
}
]
}
{
“code”: “CODE”,
“name”: “NAME”,
“tag”: “TAG(to enable GatewaySupport) | NULL”,
“attributes”: [
{
“name”: “attr”,
“type”: “number | string”,
“tag”: “TAG(if GatewaySupport enabled) | NULL”
},
{
“name”: “parent”,
“type”: “object”,
“tag”: “TAG(if GatewaySupport enabled) | NULL”,
“childs”: [
{
“name”: “childattr”,
“type”: “number | string”
}
]
}
]
}
Wrong MQTT configuration or wrong connection string
Port is not enabled on network settings
Wrong configuration on Azure IoT Hub
Wrong Topic
Timezone on server and your profile is different
Wrong JSON format
For example, if you want to add Title Field which consist of Mr., Mrs. or Miss value, you can create Custom Field with “Select” option and add all possible value on it.
1. Initialize / Create IoTConnectSDK Object
2. Send Data
3. Receive Data / Callback function
All cloud communication happens through this. Go to our Client Libraries and SDK page for more information. .
To create a device, you need to go to Device Template and Entity. You can create different users under the entity, it will automatically assign all devices to users which are in the selected entity at the time of creating devices.
Below are the different use cases for Entity.
Use Case 1– The requirement is to manage devices under the person who is operating that device. You can use the entity as an operator and create a user under the entity. Next, at the time of creating a device, assign that operators entity.
Use Case 2– You can leverage the entity when you need to manage the multiple company locations or create sub companies under the parent company.
Use Case 3– The requirement is to manage services stations of the company. You can define the service station as a entity and assign the devices under the service stations.
Use Case 4– The requirement is to manage the mobile van which consist of the device. You can create the mobile van as a entity and leverage it.
Number : any Number data
String : any string or character data
Object : any JSON data ex. gyro : { x : 1 , y : 2 , z : }