Documentation ¶
Index ¶
- type Device
- func (d *Device) DialIMServer(appId, server string, ext []byte) error
- func (d *Device) DialIMServerWithDeviceInfo(appId, server string) error
- func (d *Device) GetUser() *user.User
- func (d *Device) SendMsg(channelType string, target, text string)
- func (d *Device) SetOnReceive(rev OnReceiveHandler)
- func (d *Device) TurnOff() error
- func (d *Device) TurnOn() error
- type OnReceiveHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func (*Device) DialIMServerWithDeviceInfo ¶
func (*Device) SetOnReceive ¶
func (d *Device) SetOnReceive(rev OnReceiveHandler)
Click to show internal directories.
Click to hide internal directories.