mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 21:18:13 +08:00
fix:优化代码
This commit is contained in:
@@ -115,10 +115,8 @@ static void key_short_press( void )
|
||||
}
|
||||
|
||||
char *json_str = cJSON_Print( json_send );
|
||||
if ( !user_mqtt_isconnect( ) ) //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
user_udp_send( json_str );
|
||||
else
|
||||
user_mqtt_send( json_str );
|
||||
|
||||
user_send(false,json_str);
|
||||
|
||||
free( (void *) json_str );
|
||||
cJSON_Delete( json_send );
|
||||
|
||||
Reference in New Issue
Block a user