mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 13:08:13 +08:00
这样是没问题的
This commit is contained in:
@@ -26,7 +26,7 @@ void UserSend(int udp_flag, char *s)
|
||||
UserMqttSend(s);
|
||||
}
|
||||
|
||||
void UserFunctionCmdReceived(int udp_flag, char* pusrdata)
|
||||
void UserFunctionCmdReceived2(int udp_flag, char* pusrdata)
|
||||
{
|
||||
|
||||
unsigned char i;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "micokit_ext.h"
|
||||
|
||||
void UserSend(int udp_flag, char *s);
|
||||
void UserFunctionCmdReceived(int udp_flag, char* pusrdata);
|
||||
void UserFunctionCmdReceived2(int udp_flag, char* pusrdata);
|
||||
unsigned char StrToHex(char a, char b);
|
||||
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ void UserMqttTimerFunc(void *arg)
|
||||
case 15:
|
||||
if (buf1 == NULL) break;
|
||||
sprintf(buf1, "{\"mac\":\"%s\",\"version\":null,\"socket_0\":{\"on\":null,\"setting\":{\"name\":null}},\"socket_1\":{\"on\":null,\"setting\":{\"name\":null}},\"socket_2\":{\"on\":null,\"setting\":{\"name\":null}},\"socket_3\":{\"on\":null,\"setting\":{\"name\":null}},\"socket_4\":{\"on\":null,\"setting\":{\"name\":null}},\"socket_5\":{\"on\":null,\"setting\":{\"name\":null}}}", str_mac);
|
||||
UserFunctionCmdReceived(0, buf1);
|
||||
//UserFunctionCmdReceived(0, buf1);
|
||||
free(buf1);
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user