检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Establishing a Connection To connect a device or gateway to the platform, upload the device information to bind the device or gateway to the platform. Before establishing a connection, modify the following parameters: 1 2 3 4 5 // MQTT connection address of the platform.
Topic Upstream: $oc/devices/{device_id}/sys/events/up Parameters Parameter Mandatory/Optional Type Description object_device_id Optional String Explanation: Mandatory when the child device reports data during the gateway device data reporting.
Topic Upstream: $oc/devices/{device_id}/sys/events/up Parameters Parameter Mandatory/Optional Type Description object_device_id Optional String Explanation: Mandatory when the child device reports data during the gateway device data reporting.
calculates the accurate time as follows: (server_recv_time + server_send_time + device_recv_time - device_send_time) / 2 Topic Downstream: $oc/devices/{device_id}/sys/events/down Parameters Parameter Mandatory/Optional Type Description object_device_id Optional String Explanation: For gateway
Topic Upstream: $oc/devices/{device_id}/sys/events/up Parameters Parameter Mandatory/Optional Type Description object_device_id Optional String Explanation: Mandatory when the child device reports data during the gateway device data reporting.
Topic Downstream: $oc/devices/{device_id}/sys/events/down Parameters Parameter Mandatory/Optional Type Description object_device_id Optional String Explanation: For gateway device: The value is the child device ID in the topic.
Topic Downstream: $oc/devices/{device_id}/sys/events/down Parameters Parameter Mandatory/Optional Type Description object_device_id Optional String Explanation: For gateway child device: The value is the child device ID in the topic.
Topic Upstream: $oc/devices/{device_id}/sys/events/up Parameters Parameter Mandatory/Optional Type Description object_device_id Optional String Explanation: Mandatory when the child device reports data during the gateway device data reporting.
Topic Upstream: $oc/devices/{device_id}/sys/events/up Parameters Parameter Mandatory/Optional Type Description object_device_id Optional String Explanation: Mandatory when the child device reports data during the gateway device data reporting.
Parameter Mandatory/Optional Type Description object_device_id Optional String Explanation: Mandatory when the child device reports data during the gateway device data reporting. Specify object_device_id as the child device ID of the device in the topic.
Establishing a Connection To connect a device or gateway to the platform, upload the device information to bind the device or gateway to the platform. Before establishing a connection, modify the following parameters.
Establishing a Connection To connect a device or gateway to the platform, upload the device information to bind the device or gateway to the platform. Configure the parameters. Change the values of username and password only. For details, see Obtaining Resources.
It can be a device directly connected to the platform, or a gateway through which child devices are connected to the platform. Device ID An ID that uniquely identifies a device.
Newly added: Modify a Device Gateway 2024-11-26 This issue is the twenty-third official release.
"version": 1 }, "bus_id2": { "version": 2 } } }] } Table 1 Parameters for soft bus group list delivery from the cloud Parameter Mandatory Type Description object_device_id No String Explanation: For gateway
For gateway child device: The value is the child device ID in the topic. services Mandatory List<ServiceProperty> Indicates a list of device services.
For gateway child device: The value is the child device ID in the topic. service_id Optional String Explanation: Service ID of the device, which is determined by the product model.
For gateway child device: The value is the child device ID in the topic. service_id Optional String Explanation: Device service ID, which is defined in the product model associated with the device. command_name Optional String Explanation: Device command name, which is defined in
Developing a Gateway Gateways are special devices that provide child device management and message forwarding in addition to the functions of common devices. The SDK provides the AbstractGateway class to simplify gateway implementation.
Developing a Gateway Gateways are special devices that provide child device management and message forwarding in addition to the functions of common devices. The SDK provides the AbstractGateway class to simplify gateway implementation.