未验证 提交 e32fb2f0 编写于 作者: S Supowang 提交者: GitHub

Merge pull request #223 from DavidLin1577/patch-13

Update esp8266_tencent_firmware.c
......@@ -130,6 +130,10 @@ int esp8266_tencent_firmware_module_mqtt_state_get(mqtt_state_t *state)
}
str = strstr(echo.buffer, "+TCMQTTSTATE:");
if (!str)
{
return -1;
}
sscanf(str, "+TCMQTTSTATE:%d", &ret_state);
if (ret_state == 0) {
*state = MQTT_STATE_DISCONNECTED;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册