Get Device Binding Status

2022-06-23
No Rating

Device requirement: get whether the device has been bound to any organization

Topic:

thing/product/{pid}/requests

Parameter Explanation:

ParameterRequiredTypeIllustration
tidYstring
bidYstring
methodYstringmessage Type
timestampYint13-bit timestamp
dataYobject
» devicesYarray<device>Y
»» snYstringDevice Serial Number

Example:

// topic thing/product/{pid}/requests
{
  "method":"airport_bind_status",
  "bid":"08f3ec6b-77b4-49fb-a83e-4ef85a20c93f",
  "tid":"2f609e97-5413-45d5-8b97-75bbc9fd64fc",
  "timestamp":1654070968655,
  "data":{
    "devices":[
      {
        "sn":"drone-sn"
      },
      {
        "sn":"dock-sn"
      }
    ]
  }
}

Parameter Explanation:

ParameterRequiredTypeIllustration
tidYstring
bidYstring
methodYstringmessage Type
timestampYint13-bit timestamp
dataYobject
» resultYintThe response result of 0 means normal
» outputYobjectOutput
»» bind_statusYarray<bind_status>The array of organization binding status
»»» snYstringDevice serial numbe
»»» is_device_bind_organizationYboolWhether the device has been bound to organization
»»» organization_idYstringThe binding organization ID of device
»»» organization_nameYstringThe binding organization name of device
»»» device_callsignYstringDevice organization callsign

Server reply: Get whether the device has been bound to any organization

Topic:

// topic thing/product/{pid}/requests_reply
{
  "method":"airport_bind_status",
  "tid":"123",
  "bid":"456",
  "timestamp":"1234567890123",
  "data":{
    "result":0,
    "output":{
      "bind_status":[
        {
          "sn":"210-1",
          "is_device_bind_organization":true,
          "organization_id":"12345678",
          "organization_name":"ES310一组",
          "device_callsign":"设备组织callsign"
        },
        {
          "sn":"210-2",
          "is_device_bind_organization":true,
          "organization_id":"12345678",
          "organization_name":"ES310一组",
          "device_callsign":"设备组织callsign"
        }
      ]
    }
  }
}