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
- Websocket error Realtime
Hi peeps, I am trying to create realtime updates and I am having websocket error Code is below this msg
- Realtime not processing messages
When subscribing to realtime events of database, the client's websocket receives the messages in the websocket feed, but doesn't call the specific message handl...
- Sub-minute server-side execution for rea...
Hey — I'm building a real-time auction app on Appwrite Cloud and running into a timing limitation I'd please love some clarity on. My use case: when a bidding ...