I'm brand new to this forum, let me know if there are known threads delving in the same topic. I am working on a home automation project involving the use of ESP8266 and ESP32 flashed with Arduino sketches. I want the ESP8266 to communicate to ESP32 and the ESP32 to communicate to a cloud server. The ESP8266 would transmit sensor data to ESP32 and in turn ESP32 relay the info in encrypted mode to the server, the server returns data to ESP32 and ESP32 delivers message to ESP8266.
My question is: what is the more robust communication platform to implement for these devices?
I've heard about web-sockets, mosquito (MQTT) and GET/POST stuff, REST, etc. but I am not sure which protocol to pick for the project. I want to implement a protocol that can support encryption, can be loaded on ESP8266 (not eating to much memory) and is robust enough for commercial applications. I know I might be asking too much, but let me know if there are options out there that meet these requirements (even commercial protocols are welcome)
Thanks in advance for your support