Skip to content

Commit

Permalink
Now sending a response for every force request
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebdar committed Jul 8, 2019
1 parent 3c8f50b commit c76e3f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mqtt_serv/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ httpServer.post('/force/heatingauto', (req, res) => {
message.payload = 'error';
}
res.status(200);
res.send();
mqttServer.publish(message);
});
httpServer.post('/force/blinds', (req, res) => {
Expand All @@ -221,6 +222,7 @@ httpServer.post('/force/blinds', (req, res) => {
message.payload = 'error';
}
res.status(200);
res.send();
mqttServer.publish(message);
});
httpServer.post('/force/blindsauto', (req, res) => {
Expand All @@ -235,5 +237,6 @@ httpServer.post('/force/blindsauto', (req, res) => {
message.payload = 'error';
}
res.status(200);
res.send();
mqttServer.publish(message);
});

0 comments on commit c76e3f3

Please sign in to comment.