package
0.0.3-rc0
Repository: https://github.com/things-go/aliyun-iot.git
Documentation: pkg.go.dev

# Functions

ParseTopicDownLinkReply parse downlink reply topic topic: /{productKey}/{deviceName}/thing/downlink/reply/message.
ParseTopicEvent parse event topic topic: /{productKey}/{deviceName}/thing/event/{tsl.event.identifier}/post topic: /{productKey}/{deviceName}/thing/event/property/post.
ParseTopicHistoryEvent parse history event topic topic: /sys/{productKey}/{deviceName}/thing/event/property/history/post topic: /sys/{productKey}/{deviceName}/thing/event/{tsl.event.identifier}/history/post.
ParseTopicLifecycle parse lifecycle topic topic: /{productKey}/{deviceName}/thing/lifecycle.
ParseTopicListFound parse listfound topic topic: /{productKey}/{deviceName}/thing/list/found.
ParseTopicOtaUpgrade parse ota upgrade topic topic: /sys/${productKey}/${deviceName}/ota/upgrade.
ParseTopicStatus parse status topic topic: /as/mqtt/status/{productKey}/{deviceName}.
ParseTopicTopoLifecycle parse topo lifecycle topic topic: /{productKey}/{deviceName}/thing/topo/lifecycle.
Unix 时间戳转换.

# Constants

设备没有激活.
设备不在线.
内部服务错误.
请求被禁止,由于欠费导致.
请求参数错误.
请求过于频繁.
成功.
创建设备.
删除设备.
禁用设备.
启用设备.
DeviceStatus 设备的状态.
DeviceStatus 设备的状态.
新增.
禁用.
启用.
移除.
message type 消息类型.
message type 消息类型.
主题分隔符.
topic: /{productKey}/{deviceName}/thing/downlink/reply/message.
topic: /{productKey}/{deviceName}/thing/event/{tsl.event.identifier}/post topic: /{productKey}/{deviceName}/thing/event/property/post.
topic: /sys/{productKey}/{deviceName}/thing/event/property/history/post topic: /sys/{productKey}/{deviceName}/thing/event/{tsl.event.identifier}/history/post.
topic: /{productKey}/{deviceName}/thing/lifecycle.
topic: /sys/${productKey}/${deviceName}/ota/upgrade.
topic: /as/mqtt/status/{productKey}/{deviceName}.
topic: /{productKey}/{deviceName}/thing/list/found.
topic: /{productKey}/{deviceName}/thing/topo/lifecycle.

# Variables

错误定义.

# Structs

DeviceDownlinkResult 设备下行指令结果 Topic:/{productKey}/{deviceName}/thing/downlink/reply/message.
DeviceEvent 设备上报的事件信息。 Topic:/{productKey}/{deviceName}/thing/event/{tsl.event.identifier}/post.
DeviceHistoryEvent 历史事件上报 Topic:/sys/{productKey}/{deviceName}/thing/event/{tsl.event.identifier}/history/post.
DeviceHistoryProperty 历史属性上报 Topic:/sys/{productKey}/{deviceName}/thing/event/property/history/post.
DeviceLifecycle 设备生命周期 Topic:/{productKey}/{deviceName}/thing/lifecycle.
DeviceOtaUpgrade 固件升级状态通知 Topic:/sys/${productKey}/${deviceName}/ota/upgrade.
DeviceProperty 设备属性上报 Topic: /{productKey}/{deviceName}/thing/event/property/post.
DeviceStatus 设备上下线状态 Topic: /as/mqtt/status/{productKey}/{deviceName}.
DeviceSubInfo 子设备信息.
GwDeviceFound 网关发现子设备 Topic:/{productKey}/{deviceName}/thing/list/found.
GwDeviceTopologyRelation 设备拓扑关系变更 Topic:/{productKey}/{deviceName}/thing/topo/lifecycle.
Message mns 消息负载.
Properties amqp properties.
TopicInfo 主题信息,解析topic后获得的信息.

# Type aliases

Time local time layout like "2006-01-02 15:04:05.999".
TopicType 主题类型 see https://help.aliyun.com/document_detail/73736.html?spm=a2c4g.11186623.6.630.19485a105hJAhr.
UTCtime utc time layout like "2006-01-02T15:04:05.999Z".