add:定时任务数据放回

add:关闭系统led灯
add:上电初始化继电器状态
This commit is contained in:
Zip
2019-03-19 16:33:26 +08:00
parent e01def779a
commit 9064df8568
3 changed files with 72 additions and 5 deletions

View File

@@ -47,7 +47,6 @@ void user_function_cmd_received( int udp_flag, uint8_t *pusrdata )
cJSON *p_cmd = cJSON_GetObjectItem( pJsonRoot, "cmd" );
if ( p_cmd && cJSON_IsString( p_cmd ) && strcmp( p_cmd->valuestring, "device report" ) == 0 )
{
cJSON *pRoot = cJSON_CreateObject( );
cJSON_AddStringToObject( pRoot, "name", sys_config->micoSystemConfig.name );
cJSON_AddStringToObject( pRoot, "mac", strMac );