Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataPoint ¶
type DataPoint struct {
// 数据点序号
Index int32 `json:"index"`
// 名称
Name string `json:"name"`
// 数据类型
/// bool 0
/// number 1
/// enum 2
/// txt 3
Type int32 `json:"type"`
// 数据长度
Length int32 `json:"length,omitempty"`
// 出现在上报中
UpLink bool `json:"upLinkEnable,omitempty"`
// 出现在下发中
DownLink bool `json:"downLinkEnable,omitempty"`
}
数据点结构
type EventPayload ¶
type LinkMessage ¶
type Target ¶
type Target struct {
// 目标设备
DeviceId string `json:"deviceId"`
// 目标app
AppId string `json:"appId"`
// 网络
ConnectorId string `json:"connectorId,omitempty"`
}
/ 事件接受者
type Trigger ¶
type Trigger struct {
DeviceID string `json:"deviceID,omitempty"`
DeviceName string `json:"deviceName,omitempty"`
Tags []TriggerTag `json:"tags,omitempty"`
TargetEvent *EventPayload `json:"targetEvent,omitempty"`
}
type TriggerTag ¶
Click to show internal directories.
Click to hide internal directories.