You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
583 B
32 lines
583 B
package iot
|
|
|
|
import "encoding/xml"
|
|
|
|
/*
|
|
type Control struct {
|
|
ControlSet ControlSet `xml:",omitempty"`
|
|
ControlGetForm ControlGetForm `xml:",omitempty"`
|
|
}
|
|
|
|
func (*Control) IQPayload() {
|
|
}
|
|
*/
|
|
|
|
type ControlSet struct {
|
|
XMLName xml.Name `xml:"urn:xmpp:iot:control set"`
|
|
Fields []ControlField `xml:",any"`
|
|
}
|
|
|
|
func (*ControlSet) IsIQPayload() {
|
|
}
|
|
|
|
type ControlGetForm struct {
|
|
XMLName xml.Name `xml:"urn:xmpp:iot:control getForm"`
|
|
}
|
|
|
|
type ControlField struct {
|
|
XMLName xml.Name
|
|
Name string `xml:"name,attr,omitempty"`
|
|
Value string `xml:"value,attr,omitempty"`
|
|
}
|