Documentation
¶
Index ¶
- type ConfigGetMessage
- type ConfigSetReplyMessage
- type DeviceAddMessage
- type DeviceDeleteMessage
- type DeviceLog
- type DeviceOfflineMessage
- type DeviceOnlineMessage
- type DevicePropertiy
- type DeviceStatusLog
- type EventReportMessage
- type PropertyReportMessage
- type PropertySetMessage
- type PropertySetReplyMessage
- type ReportEventData
- type ReportEventParam
- type ReportPropertyData
- type ReportPropertyNode
- type ReportStatusData
- type ServiceCallMessage
- type ServiceCallReplyMessage
- type TsdTableDataInfo
- type TsdTableInfo
- type TsdTables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigGetMessage ¶
type ConfigSetReplyMessage ¶
type ConfigSetReplyMessage struct {
Code int `json:"code"` //int类型,响应码
Data map[string]interface{} `json:"data"` //map类型,响应数据列表,key为数据标识,value为数据值
Timestamp int64 `json:"timestamp"` //int64类型,时间戳,单位为毫秒
}
平台接收到配置设置响应
type DeviceAddMessage ¶
type DeviceAddMessage struct {
Timestamp int64 `json:"timestamp"` //int64类型,时间戳,单位为毫秒
Desc string `json:"desc"` //string类型,描述信息
}
添加设备
type DeviceDeleteMessage ¶
type DeviceDeleteMessage struct {
Timestamp int64 `json:"timestamp"` //int64类型,时间戳,单位为毫秒
Desc string `json:"desc"` //string类型,描述信息
}
删除设备
type DeviceLog ¶
type DeviceLog struct {
Ts *gtime.Time `json:"ts" dc:"时间"`
Device string `json:"device" dc:"设备标识"`
Type string `json:"type" dc:"日志类型"`
Content string `json:"content" dc:"日志内容"`
}
DeviceLog 设备日志
type DeviceOfflineMessage ¶
type DeviceOfflineMessage struct {
Timestamp int64 `json:"timestamp"` //int64类型,时间戳,单位为毫秒
Desc string `json:"desc"` //string类型,描述信息
}
设备下线
type DeviceOnlineMessage ¶
type DeviceOnlineMessage struct {
Timestamp int64 `json:"timestamp"` //int64类型,时间戳,单位为毫秒
Desc string `json:"desc"` //string类型,描述信息
}
设备上线
type DevicePropertiy ¶
type DeviceStatusLog ¶
DeviceStatusLog 设备状态动态变化日志
type EventReportMessage ¶
type EventReportMessage struct {
EventId string `json:"eventId"` //string类型,事件标识
Events map[string]interface{} `json:"events"` //map类型,事件列表,key为事件标识,value为事件值
Timestamp int64 `json:"timestamp"` //int64类型,时间戳,单位为毫秒
}
设备事件上报
type PropertyReportMessage ¶
type PropertyReportMessage struct {
Properties map[string]ReportPropertyNode `json:"properties"` //map类型,属性列表,key为属性标识,value为属性值
}
设备属性上报
type PropertySetMessage ¶
type PropertySetMessage struct {
Properties map[string]interface{} `json:"properties"` //map类型,属性列表,key为属性标识,value为属性值
Timestamp int64 `json:"timestamp"` //int64类型,时间戳,单位为毫秒
}
平台设置设备属性
type PropertySetReplyMessage ¶
type PropertySetReplyMessage struct {
Code int `json:"code"` //int类型,响应码
Data map[string]interface{} `json:"data"` //map类型,响应数据列表,key为数据标识,value为数据值
Timestamp int64 `json:"timestamp"` //int64类型,时间戳,单位为毫秒
}
平台接收到设置设备属性响应
type ReportEventData ¶
type ReportEventData struct {
Key string // 事件标识
Param ReportEventParam // 事件输出参数
}
上报事件数据
type ReportEventParam ¶
事件输出参数
type ReportPropertyNode ¶
属性值
type ReportStatusData ¶
设备上下线状态
type ServiceCallMessage ¶
type ServiceCallMessage struct {
ServiceId string `json:"serviceId"` //string类型,服务标识
Params map[string]interface{} `json:"params"` //map类型,服务参数列表,key为参数标识,value为参数值
Timestamp int64 `json:"timestamp"` //int64类型,时间戳,单位为毫秒
}
设备服务调用请求
type ServiceCallReplyMessage ¶
type ServiceCallReplyMessage struct {
ServiceId string `json:"serviceId"` //string类型,服务标识
Code int `json:"code"` //int类型,响应码
Data map[string]interface{} `json:"data"` //map类型,响应数据列表,key为数据标识,value为数据值
Timestamp int64 `json:"timestamp"` //int64类型,时间戳,单位为毫秒
}
平台接收到设备服务响应
type TsdTableDataInfo ¶
type TsdTableInfo ¶
Click to show internal directories.
Click to hide internal directories.