Documentation ¶
Index ¶
- type DeviceSubServer
- func (s *DeviceSubServer) Config(topic string, payload []byte) error
- func (s *DeviceSubServer) Connected(info *devices.DevConn) error
- func (s *DeviceSubServer) Disconnected(info *devices.DevConn) error
- func (s *DeviceSubServer) Gateway(topic string, payload []byte) error
- func (s *DeviceSubServer) Ota(topic string, payload []byte) error
- func (s *DeviceSubServer) SDKLog(topic string, payload []byte) error
- func (s *DeviceSubServer) Shadow(topic string, payload []byte) error
- func (s *DeviceSubServer) Thing(topic string, payload []byte) error
- type InnerSubServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceSubServer ¶
func NewDeviceSubServer ¶
func NewDeviceSubServer(svcCtx *svc.ServiceContext, ctx context.Context) *DeviceSubServer
func (*DeviceSubServer) Config ¶
func (s *DeviceSubServer) Config(topic string, payload []byte) error
Config 设备远程配置
func (*DeviceSubServer) Connected ¶
func (s *DeviceSubServer) Connected(info *devices.DevConn) error
func (*DeviceSubServer) Disconnected ¶
func (s *DeviceSubServer) Disconnected(info *devices.DevConn) error
func (*DeviceSubServer) Gateway ¶ added in v0.3.0
func (s *DeviceSubServer) Gateway(topic string, payload []byte) error
Log 设备调试日志
func (*DeviceSubServer) Ota ¶
func (s *DeviceSubServer) Ota(topic string, payload []byte) error
Ota ota远程升级
func (*DeviceSubServer) SDKLog ¶
func (s *DeviceSubServer) SDKLog(topic string, payload []byte) error
Log 设备调试日志
type InnerSubServer ¶
func NewInnerSubServer ¶
func NewInnerSubServer(svcCtx *svc.ServiceContext, ctx context.Context) *InnerSubServer
func (*InnerSubServer) PublishToDev ¶
func (s *InnerSubServer) PublishToDev(topic string, payload []byte) error
Click to show internal directories.
Click to hide internal directories.