mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-16 15:08:15 +08:00
Merge branch 'oopuuu:master' into master
This commit is contained in:
@@ -449,6 +449,10 @@ static int TotalSocketSetEnabled(httpd_request_t *req){
|
|||||||
|
|
||||||
sscanf(buf, "%d", &on);
|
sscanf(buf, "%d", &on);
|
||||||
UserRelaySetAll(on);
|
UserRelaySetAll(on);
|
||||||
|
int i = 0;
|
||||||
|
for (; i < SOCKET_NUM; i++) {
|
||||||
|
UserMqttSendSocketState(i);
|
||||||
|
}
|
||||||
UserMqttSendTotalSocketState();
|
UserMqttSendTotalSocketState();
|
||||||
send_http("OK", 2, exit, &err);
|
send_http("OK", 2, exit, &err);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user