libmodbus icon indicating copy to clipboard operation
libmodbus copied to clipboard

Sugestion of a Custom Allocator

Open diplfranzhoepfinger opened this issue 1 year ago • 2 comments

in ESP32 we have different Memory:

  • malloc
  • heap_caps_malloc(paSize, MALLOC_CAP_SPIRAM);

like in lua, and other Projects they use a custom allocator, where the App Programmer can decide how to allocate.

maybe, if i have time, i make a suggestion.

diplfranzhoepfinger avatar Jan 31 '25 16:01 diplfranzhoepfinger

OR....you can just use the official ESP-Modbus library for the ESP32: https://github.com/espressif/esp-modbus

#dontreinventthewheel

WebDust21 avatar Feb 03 '25 16:02 WebDust21

no. it has reasons that we are here at libmodbus.

i know the esp-modus, and this one is not suitable for our needs. especially it is based on freemodbus not on libmodbus.

we need libmodbus for 4diac integration, and here are more than just 1 person using libmodbus on esp32.

moreover, if you program it on "C" the Interface of libmodbus is much easier to handle.

diplfranzhoepfinger avatar Feb 03 '25 18:02 diplfranzhoepfinger