Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { Conn Token string // SA登录token PluginID string // 插件id Formatted bool // 是否格式化输出 }
func (*Client) GetAttributes ¶
GetAttributes 获取设备属性
type MsgDiscover ¶
type MsgGetAttribute ¶
type MsgSetAttribute ¶
type MsgSetAttribute struct { MsgGetAttribute ServiceData `json:"service_data"` }
type ServiceData ¶
type ServiceData struct {
Attributes []Attribute `json:"attributes"`
}
Click to show internal directories.
Click to hide internal directories.