Problem with connection to Supabase Realtime Database using WebSocket and Arduino ESP32 #30762
Unanswered
tracemodule
asked this question in
Questions
Replies: 1 comment
-
|
Has any progress been made on this? I have tried multiple ESP32's and can't get a WebSocket connection either. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use an Arduino ESP32 module to connect to a Supabase Realtime Database using WebSocket. The goal is to listen to updates in the database and send them to the ESP32 module in real time.
I am using the ArduinoWebsockets library to handle the WebSocket connection and the ESPSupabase library to interact with the Supabase database.
What I Need Help With
WebSocket Authentication:
I'm having trouble establishing and maintaining a WebSocket connection to the Supabase Realtime API.
Handling Real-Time Events:
I want the ESP32 to correctly parse incoming messages and perform actions based on them.
What is a WebSocket?
A WebSocket is a communication protocol that allows two-way, real-time communication between a client (e.g., ESP32) and a server (e.g., Supabase Realtime). It is ideal for applications that require frequent updates, like monitoring real-time data changes in a database.
Code (Simplified for Security)
Below is a simplified version of my code for reference. Sensitive information such as API keys and URLs has been omitted.
Beta Was this translation helpful? Give feedback.
All reactions