检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
GATEWAY: a directly connected device or gateway.
However, it does not provide gateway services. Requirements It adapts to LiteOS, Linux, macOS, and FreeRTOS. You can modify the SDK to adapt to other environments. For details about different modules, see the SDK development board porting list.
However, it does not provide gateway services. Requirements It adapts to LiteOS, Linux, macOS, and FreeRTOS. You can modify the SDK to adapt to other environments. For details about different modules, see the SDK development board porting list.
Only letters, digits, underscores (_), and hyphens (-) are allowed. status string Device status The value can be ONLINE, OFFLINE, ABNORMAL, INACTIVE, or FROZEN. node_type string Device node type The value can be GATEWAY (a directly connected device or gateway) and ENDPOINT (an indirectly
Value: GATEWAY (gateway mode). task_ext_info No Object Parameter description: extended information of batch tasks This parameter is supported when task_type is set to firmwareUpgrade or softwareUpgrade.
Number of devices registered for an SUF 1,000 Devices Number of child devices added to a gateway 50,000 Depth of the gateway structure 2 levels Device tags Number of tags added to a device 10 Groups Number of groups (including static and dynamic groups) in an instance 20,000 Static
API for batch reporting device properties: used by a gateway to report properties of multiple devices in batches to the platform.
It can be a device directly connected to the platform, or a gateway that connects child devices to the platform. Device authentication The platform authenticates devices that attempt to access it.
For gateway child device: The value is the child device ID in the topic. service Yes List<ServiceProperty> Explanation: List of device services.
The server acting as a gateway or proxy receives an invalid response from a remote server. 503 ServiceUnavailable The requested service is unavailable.
Batch reporting device properties A gateway reports property data of multiple devices to the platform. Reporting device events Devices report event data in the format defined in the product model.
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.
Value: GATEWAY (gateway mode). task_ext_info Object Parameter description: extended information of batch tasks This parameter is supported when task_type is set to firmwareUpgrade or softwareUpgrade.
Value: GATEWAY (gateway mode). task_ext_info Object Parameter description: extended information of batch tasks This parameter is supported when task_type is set to firmwareUpgrade or softwareUpgrade.
For gateway child device: The value is the child device ID in the topic. name Optional String Explanation: Message name, which is optional and is used for description. id Optional String Explanation: Unique ID of a message, which is used to distinguish and search for messages.
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.
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.
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.