Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceChannel ¶
type DeviceChannel struct {
DeviceCode string // 设备码
Channel interface{} // 连接通道
LastCommTime time.Time // 最后通信时间
}
DeviceChannel 设备与服务端连接通道
func (*DeviceChannel) WriteToMqtt ¶
func (c *DeviceChannel) WriteToMqtt(topic string, content interface{})
func (*DeviceChannel) WriteToSocket ¶
func (c *DeviceChannel) WriteToSocket(content []byte)
Click to show internal directories.
Click to hide internal directories.