package mqttcli var MaxClientIdLen = 8 //single server max retry connection count. var MaxRetryCount = 3 //topics var TopicListenerControl = "/control[-flat]/#" var TopicListenerEvent = "/event[-flat]/#" //device id + TopicPublish var TopicPublish = "/media" //publish cmd var CMD_GETLOG = 0 var CMD_REBOOT = 1 var CMD_UPGRADE = 2 var CMD_PLAYLIST = 3 type PublishMsg struct { Command int `json:"command"` } type Response struct { Command int `json:"command"` Result int `json:"result"` Message string `json:"message"` }