How to have http endpoints on espeasy for API calls?
Posted: 03 Aug 2020, 20:30
Hi, I have never used any of the http methods to control or send status using esp yet.
On HomeBridge, they have a web-sprinkler node which reads a /status endpoint, and then expect this api endpoint https://www.npmjs.com/package/homebridg ... nterfacing to send back the following information (from the espeasy endpoint /status - to the requestor) - about the status of the sprinkler valves, which will be gpios:
Is this possible with ESP? With generic HTTP Controller, or what?
On HomeBridge, they have a web-sprinkler node which reads a /status endpoint, and then expect this api endpoint https://www.npmjs.com/package/homebridg ... nterfacing to send back the following information (from the espeasy endpoint /status - to the requestor) - about the status of the sprinkler valves, which will be gpios:
Code: Select all
[
{
"zone": 1,
"state": 0
},
{
"zone": 2,
"state": 0
},
{
"zone": 3,
"state": 0
},
...
]