package globals

type APPInitStatus int

const (
	APPInitStatus_UNKNOW                 APPInitStatus = -1
	APPInitStatus_SUCCESS                APPInitStatus = 0
	APPInitStatus_SYSTEM_ERROR           APPInitStatus = 0xf001
	APPInitStatus_FMT_NOTMATCH           APPInitStatus = 0xf002
	APPInitStatus_JSON_ERROR             APPInitStatus = 0xf003
	APPInitStatus_ARG_ERROR              APPInitStatus = 0xf004
	APPInitStatus_SSID_NOTFOUND          APPInitStatus = 0xf005
	APPInitStatus_PASSWD_ERROR           APPInitStatus = 0xf006
	APPInitStatus_WIFI_BUSY              APPInitStatus = 0xf007
	APPInitStatus_CONNECT_TIMEOUT        APPInitStatus = 0xf008
	APPInitStatus_WIFI_NOT_RESPONSE      APPInitStatus = 0xf009
	APPInitStatus_ENCRYPT_NOT_SUPPORT    APPInitStatus = 0xf00a
	APPInitStatus_OTHER_CONNECT_ERROR    APPInitStatus = 0xf00b
	APPInitStatus_PARING_NOT_RESPONSE    APPInitStatus = 0xf00c
	APPInitStatus_REQUEST_SERVER_ERROR   APPInitStatus = 0xf00d
	APPInitStatus_NOT_IN_WIFIPARING      APPInitStatus = 0xf00e
	APPInitStatus_BINDNUM_BEYOND_MAX     APPInitStatus = 0xf00f
	APPInitStatus_YUNXIN_FAIL            APPInitStatus = 0xf010
	APPInitStatus_ACCOUNT_NOT_EXIST      APPInitStatus = 0xf011
	APPInitStatus_SERVER_ARG_ERROR       APPInitStatus = 0xf012
	APPInitStatus_SERVER_SYSTEM_ERROR    APPInitStatus = 0xf013
	APPInitStatus_SERVER_ACCOUNT_BOUNDED APPInitStatus = 0xf014
	APPInitStatus_SERVER_DEVICE_BOUNDED  APPInitStatus = 0xf015

	APPInitStatus_BLE_DISCONNECT APPInitStatus = 0xffff
)

type BtStatus struct {
	Status BtEvt `json:"bt_evt"`
	Reason int   `json:"reason"`
}

type BtEvt int

const (
	BtEvt_BLE_CONNECT BtEvt = iota
	BtEvt_BLE_DISCONNECT
)
