fix:发送ota命令时,返回的数据无ota字段的问题

版本号:v0.2.1
This commit is contained in:
Zip
2019-03-25 13:01:57 +08:00
parent 1725d849b4
commit c7fbcfcfe4
5 changed files with 5 additions and 2 deletions

View File

@@ -40,6 +40,6 @@ APP端见: [SmartControl_Android_MQTT](https://github.com/a2633063/SmartControl_
- [x] MQTT客户端连接服务器(无MQTT时使用UDP通信,如果你会内网穿透,就可能实现远程控制功能)
- [x] app控制每个接口独立开关
- [x] app配置每个接口拥有独立的5组定时开关
- [ ] ota在线升级(暂时未做)
- [x] ota在线升级
- [ ] app实时显示功率(暂时未测量功率模块的电路.暂时未实现此功能)
- [ ] ~~根据功率自动开关~~(可能不会做这个功能)

View File

@@ -4,7 +4,7 @@
#include "mico.h"
#include "MiCOKit_EXT.h"
#define VERSION "v0.2"
#define VERSION "v0.2.1"
#define TYPE 1
#define TYPE_NAME "zTC1"

View File

@@ -206,6 +206,9 @@ void user_function_cmd_received( int udp_flag, uint8_t *pusrdata )
}
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//<2F><><EFBFBD><EFBFBD><EFBFBD>豸ota
if ( p_ota ) cJSON_AddStringToObject( json_setting_send, "ota", p_ota->valuestring );
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E8B1B8><EFBFBD><EFBFBD>/deviceid
if ( p_setting_name ) cJSON_AddStringToObject( json_setting_send, "name", sys_config->micoSystemConfig.name );
//<2F><><EFBFBD><EFBFBD>mqtt ip