|
@@ -1681,7 +1681,16 @@ int parseDtu(char *json_string)
|
|
|
rt_free(photo);
|
|
rt_free(photo);
|
|
|
rt_thread_delay(2000);
|
|
rt_thread_delay(2000);
|
|
|
}
|
|
}
|
|
|
- //{"ext": {"type": "turn"}, "cmd": "ctrl"} 转仓
|
|
|
|
|
|
|
+ else if (strstr(type->valuestring,"turnzp")!=RT_NULL) //1.0测报灯转仓
|
|
|
|
|
+ {
|
|
|
|
|
+ LOG_I("远程打开转仓!");
|
|
|
|
|
+ device_status.clear_status = 2;
|
|
|
|
|
+ char *ctr_c = makeJson_Warn("执行转仓","control");
|
|
|
|
|
+ DTU_Write("%s",ctr_c);
|
|
|
|
|
+ rt_free(ctr_c);
|
|
|
|
|
+ rt_thread_delay(2000);
|
|
|
|
|
+ }
|
|
|
|
|
+ //{"ext": {"type": "turn"}, "cmd": "ctrl"} 孢子仪转仓
|
|
|
else if(strstr(type->valuestring,"turn")!=RT_NULL)
|
|
else if(strstr(type->valuestring,"turn")!=RT_NULL)
|
|
|
{
|
|
{
|
|
|
#if Color_EN == 0
|
|
#if Color_EN == 0
|
|
@@ -1797,7 +1806,6 @@ int parseDtu(char *json_string)
|
|
|
rt_free(ctr_c);
|
|
rt_free(ctr_c);
|
|
|
rt_thread_delay(2000);
|
|
rt_thread_delay(2000);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
else if(strstr(type->valuestring,"selfcheck")!=RT_NULL)
|
|
else if(strstr(type->valuestring,"selfcheck")!=RT_NULL)
|
|
|
{
|
|
{
|
|
|
if(device_status.selfcheck_ws == 2)
|
|
if(device_status.selfcheck_ws == 2)
|