#ifndef HTTP_CONFIG_MQTT_H__
#define HTTP_CONFIG_MQTT_H__

#include "common.h"

#define DEFAULT_MQTT_BROKER_ADDRESS "mqtt177.controlmelive.com"
#define DEVICE_DEFAULT_VIDEO  "https://jywy.yd-ss.com?dev="

typedef struct{
    char videourl[512];
    char mqtt_servers[10][256];
    int mqtt_count;
}DEVICE_MQTTCONFIG;

extern DEVICE_MQTTCONFIG *g_mqtt_cam_config_t;
/*mqtt服务器和视频流地址初始化*/
int http_mqtt_video_init();

// 有网时拉取 getConfig.moreInfo.language（CN/EN），在下载离线音频前调用
int device_fetch_region_language(void);

#endif