检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
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.
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.
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.
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.
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.
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.
"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 a gateway
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.
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. 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: 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
Table 10 ForwardingInfo Parameter Type Description eip String Parameter description: EIP bound to the NAT gateway. enable_snat Boolean Parameter description: whether to enable the SNAT configuration. Options: true false Example Requests Querying an instance.
Why Does a Child Device Added Through the Gateway Not Belong to Any Product? When a child device is added by calling an AgentLite API, the device information carried in the request must be consistent with the product model defined on the IoT platform for the child device.
to the platform, upload the device information to bind the device or gateway to the platform.
To connect a device or gateway to the platform, upload the device information to bind the device or gateway to the platform. Click Connect. If the domain name, device ID, and secret are correct, a device connection success is displayed in the log.