REST architecture expansion
Posted: Tue Feb 14, 2023 10:06 am
Hi, this is a question on protocol architecture (in particular for ESP32 WROOM).
The present architecture consists of a standard REST developed with IDF v5.0 libraries.
The AP is also an HTTP server and STA(s) plays as HTTP client (both are ESP32 WROOM).
The HTTP server offers an HTML interface to the operator for maintenance tasks.
As per REST architecture the communication is mastered by the HTTP client.
Polling the server with a HTTP GET request on a regular timeframe makes possible to enable backward communication (from server to client)
I need to increase the frequency of these polling messages but HTTP/TCP takes too many resources and I'm wondering how to build a solution that employs lighter protocols (eg ESP-NOW) for a single very light specific handshake sequence partnering the deployed at the present HTTP/TCP REST services.
Can a similar design be possible? In that case, there are already developed example? If so, where can I get them?
In case an extra ("bidirectional") protocol (eg ESP-NOW) can be added to partner with the REST/HTTP/TCP, will the AP be able to autonomously trigger communication to the STA using that protocol? (that would be even a better solution)
Thank you, S.
The present architecture consists of a standard REST developed with IDF v5.0 libraries.
The AP is also an HTTP server and STA(s) plays as HTTP client (both are ESP32 WROOM).
The HTTP server offers an HTML interface to the operator for maintenance tasks.
As per REST architecture the communication is mastered by the HTTP client.
Polling the server with a HTTP GET request on a regular timeframe makes possible to enable backward communication (from server to client)
I need to increase the frequency of these polling messages but HTTP/TCP takes too many resources and I'm wondering how to build a solution that employs lighter protocols (eg ESP-NOW) for a single very light specific handshake sequence partnering the deployed at the present HTTP/TCP REST services.
Can a similar design be possible? In that case, there are already developed example? If so, where can I get them?
In case an extra ("bidirectional") protocol (eg ESP-NOW) can be added to partner with the REST/HTTP/TCP, will the AP be able to autonomously trigger communication to the STA using that protocol? (that would be even a better solution)
Thank you, S.