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
- Using node sdk, not getting all realtime...
I am not realtime events via node-sdk, via api key. Unless the row/table has the permission of "Any Read"
- Pool 'console' is empty
I am using self-hosted Appwrite. I recently upgraded to 1.7.4 and because of that I monitored the logs more closely. I noticed the realtime-error **Pool 'consol...
- Auto Updating Backend & Auth via Appwrit...
<@870607367597850624> Hey everyone π I wanted to ask to ask for a friend, heβs asking if Appwrite be used in a similar way to Supabase when integrated with AI ...