
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
- Filtering Tables in Real Time
Is there a way to use real time and filter the tables with the fields? For instance, let's say i have a table that holds private messages, and in that DM table ...
- Realtime integration with SSR auth
Hey, I have a nextjs website with SSR auth, works great. I use a session client for user verification and an admin client with API key. Both is used with node-...
- Appwrite realtime stopped working all of...
In our production environment, Appwrite Realtime suddenly stopped working and no updates are coming through , can you confirm if there are any known issues?
