Low-memory communication

Fredckx
Posts: 17
Joined: Mon Mar 29, 2021 8:55 pm

Low-memory communication

Postby Fredckx » Mon Sep 27, 2021 1:03 pm

Hi,

I have an application which requires communication with the outside world. Preferably I would like to use Wifi and MQTT. I implemented this using the esp_wifi and mqtt_client components. I now have a problem that the size of the firmware is too large. I already applied some measures described here: https://docs.espressif.com/projects/esp ... /size.html

However most of these measures come at a cost of getting less info about exceptions etc. Also, the size reduction is not sufficient.
I now wonder if usage of another means of communication , e.g with a nearby second ESP32 board as a "hub" can help me out. My questions:

- is communication via e.g. ESP-NOW or BT/BLE less demanding with respect to memory usage compared with the esp_wifi/mqtt_client combination?
- how do ESP-NOW and BT/BLE compare in this respect?
- any other suggestions?

EDIT: If that helps, even a wired connection between to ESP32 boards would be acceptable (I2C ?)

Thanks
Fred

chegewara
Posts: 2375
Joined: Wed Jun 14, 2017 9:00 pm

Re: Low-memory communication

Postby chegewara » Mon Sep 27, 2021 2:36 pm

NimBLE should have less memory requirements than wifi + mqtt, especially if its secured mqtt connection.
For sure I2C and UART are less memory hungry comparing to all wireless connection types.

Fredckx
Posts: 17
Joined: Mon Mar 29, 2021 8:55 pm

Re: Low-memory communication

Postby Fredckx » Mon Sep 27, 2021 3:18 pm

Thanks @chegewara.

Does anyone know about existence of a well-written lib for communication via I2C / UART between peers?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Low-memory communication

Postby WiFive » Mon Sep 27, 2021 4:47 pm


Who is online

Users browsing this forum: Bing [Bot] and 149 guests