fix bugs.
This commit is contained in:
parent
3a0b7c7c25
commit
b8187faec4
@ -114,7 +114,7 @@ int start_client(const char *boardname, const char *gwid, const char *gwip, cons
|
||||
return -1;
|
||||
}
|
||||
|
||||
int qos = readIntValue("config", (char*)std::string("qos").c_str(), (char *)GlobalConfig::Config_G.c_str());
|
||||
int qos = readIntValue("config", "qos", (char *)GlobalConfig::Config_G.c_str());
|
||||
mosquitto_lib_init(); //使用mosquitto库函数前需进行初始化
|
||||
memset(&mqttsdata, 0, sizeof(mqttsdata_t));
|
||||
memcpy(mqttsdata.gwid, gwid, strlen(gwid));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user