Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMqttClientOpts ¶
func GetMqttClientOpts(serverAddress string) *MQTT.ClientOptions
func InitClient ¶
func InitClient(newClientInfo ClientInfoStruct)
Types ¶
type AuthResponseStruct ¶
type AuthResponseStruct struct { Servers string `json:"servers"` Pubkey string `json:"pubkey"` PkVersion string `json:"pkVersion"` DeviceID string `json:"deviceId"` Success bool `json:"success"` Sign string `json:"sign"` ErrorCode string `json:"errorCode"` Message string `json:"message"` }
func IotAuth ¶
func IotAuth() *AuthResponseStruct
func (*AuthResponseStruct) GetServerAddress ¶
func (s *AuthResponseStruct) GetServerAddress() string
func (*AuthResponseStruct) IsSuccess ¶
func (s *AuthResponseStruct) IsSuccess() bool
Click to show internal directories.
Click to hide internal directories.