Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sugestion of a Custom Allocator #797

Open
diplfranzhoepfinger opened this issue Jan 31, 2025 · 2 comments
Open

Sugestion of a Custom Allocator #797

diplfranzhoepfinger opened this issue Jan 31, 2025 · 2 comments

Comments

@diplfranzhoepfinger
Copy link
Contributor

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.

@WebDust21
Copy link

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

#dontreinventthewheel

@diplfranzhoepfinger
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants