Documentation ¶
Index ¶
Constants ¶
View Source
const ( // API API_HOST = "api.yosmart.com" API_PATH = "/open/yolink/v2/api" TOKEN_PATH = "/open/yolink/token" MQTT_PORT = 8003 // Misc SUCCESS_CODE = "000000" ERROR_STATE = "error" )
Variables ¶
View Source
var ErrInvalidFormat = errors.New("invalid format")
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct { // User Access Credentials from YoLink app: UAID string SecretKey string // Set by getToken: AccessToken string RefreshToken string // Set by getHomeId HomeId string MqttMessageHandler MessageHandler // contains filtered or unexported fields }
func NewAPIClient ¶
func (*APIClient) GetDevices ¶
func (*APIClient) MQTTConnect ¶
type JsonRequest ¶
type JsonResponse ¶
type MessageHandler ¶
Click to show internal directories.
Click to hide internal directories.