Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceData ¶
type DeviceData struct {
Application string `json:"application,omitempty"`
Device string `json:"device,omitempty"`
Properties map[string]interface{} `json:"properties,omitempty"`
Geo GeoData `json:"location"`
}
DeviceData 应用层数据结构
type DownLinkRx ¶ added in v0.3.0
type LinkMessageRx ¶ added in v0.3.0
type LinkMessageRx struct {
AppID string `json:"appId,omitempty"` // App(应用)ID
DeviceID string `json:"deviceId,omitempty"` // 设备ID(数据库编号,外部系统或open api里不展示)
DeviceSn string `json:"deviceSn,omitempty"` // 设备SN(序列号)
DeviceCode string `json:"deviceCode,omitempty"` // 设备Code(通信编号-通信识别号)
DeviceName string `json:"deviceName,omitempty"` // 名称
Time int64 `json:"time,omitempty"`
Raw []byte `json:"raw,omitempty"`
Data map[string]interface{} `json:"data,omitempty"`
}
LinkMessageRx 平台结构
type NetworkData ¶
type NetworkData struct {
ApplicationId int `json:"application_id,omitempty"` // 平台应用ID
DeviceId int `json:"device_id,omitempty"` // 平台设备ID
Payload interface{} `json:"payload,omitempty"` // 数据载体
}
NetworkData 网络层数据结构,由各个network bridge收集,提交到上层解析
type NetworkRx ¶ added in v0.3.0
type NetworkRx struct {
NetworkId string `json:"networkId,omitempty"`
EventType nwconnector.EventType `json:"eventType,omitempty"`
Host string `json:"host,omitempty"`
Port int `json:"port,omitempty"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
ClientId string `json:"clientId,omitempty"`
Ssl bool `json:"ssl"`
}
type OpenDeviceData ¶ added in v0.4.0
type OpenDeviceData struct {
DeviceID string `json:"deviceId,omitempty"` // 设备ID
DeviceCode string `json:"deviceCode,omitempty"` // 设备Code(唯一编号)
DeviceName string `json:"deviceName,omitempty"` // 名称
Time int64 `json:"time,omitempty"`
Data map[string]interface{} `json:"data,omitempty"`
}
OpenDeviceData 开放数据:设备消息
type OpenShadowData ¶ added in v0.4.0
type OpenShadowData struct {
ThingID string `json:"thingId,omitempty"` // App(应用)ID
ThingCode string `json:"thingCode,omitempty"` // Code(唯一编码)
ThingName string `json:"thingName,omitempty"` // 名称
Time int64 `json:"time,omitempty"`
Data map[string]interface{} `json:"data,omitempty"`
}
OpenShadowData 开放数据:物消息
Click to show internal directories.
Click to hide internal directories.