connection

package
v0.0.0-...-33e1650 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2025 License: MIT Imports: 5 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL