Hello everybody, I'm a hobbyist and i'm working on a project with electronics IOT (ESP32) with MQTT connection. My instructions for my device (ex : turn on the lights) are stored in a database/collection, then sent by MQTT protocol to by device with a nodejs script. I just realised that there is no realtime API for SDK, what is the best solution for my server to check for updates ? So far my best solution is a get every documents every 5 secs ... I'm sure there is a more elegant solution !
It's typically not needed because you can execute a function off an event or webhook
That would only be possible if the device is publicly exposed to the Internet - which would probably not be a good idea, in this case
Thank's for your answer, webhook sounds a possible solution, it complexifies my network security but I'll look into it !
Recommended threads
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...
- i am getting 404 not found in my current...
in my current appwrite i am getting 404 not found from backend side and in frontend getting error of CORS error as backend is not working
- How to create a custom authentication sy...
I’m looking to create an Appwrite function that first verifies a client using some custom logic, like providing a secret key. Once this verification is complete...