Skip to content
Snippets Groups Projects
Commit 346bae9d authored by Cyril Danilevski's avatar Cyril Danilevski
Browse files

Set and query a channel

parent 596c26c3
No related branches found
No related tags found
No related merge requests found
Pipeline #132044 failed
......@@ -84,8 +84,8 @@ void restart() {
enum {
ON,
OFF,
ON,
NONE,
};
......@@ -103,8 +103,7 @@ void sendSNMP() {
}
}
auto ipAddr = IPAddress(10, 42, 0 ,1);
if (output != NONE) {
auto ipAddr = IPAddress(192,168,140,79);
SNMP::Message *snmp_msg = mpod.output(output);
snmp.send(snmp_msg, ipAddr, SNMP::PORT::SNMP);
delete snmp_msg;
......@@ -125,7 +124,7 @@ void pollMPODChannel() {
String http_msg = "{\n";
http_msg += ret;
http_msg += "\"success\": 1";
http_msg += ",\"success\": 1";
http_msg += "\n}";
restServer.send(200, "text/json", http_msg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment