mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 13:08:13 +08:00
MQTT OK
This commit is contained in:
@@ -243,7 +243,7 @@ static int HttpSetMqttConfig(httpd_request_t *req)
|
||||
require_noerr(err, exit);
|
||||
|
||||
sscanf(buf, "%s %d", MQTT_SERVER, &MQTT_SERVER_PORT);
|
||||
user_mqtt_init();
|
||||
//user_mqtt_init();
|
||||
|
||||
send_http("OK", 2, exit, &err);
|
||||
|
||||
|
||||
@@ -475,8 +475,8 @@ function SubmitNetwork() {
|
||||
|
||||
function SubmitMqtt() {
|
||||
SetIng(2);
|
||||
var params = mqtt_addr_ipt.value + mqtt_port_ipt;
|
||||
HttpPost("/wifi/config", function (re) {
|
||||
var params = mqtt_addr_ipt.value + " " + mqtt_port_ipt.value;
|
||||
HttpPost("/mqtt/config", function (re) {
|
||||
alert(re);
|
||||
SetOK(2);
|
||||
}, params);
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user