Skip to content

Conversation

yannikHoeflich
Copy link

Important

This PR has some breaking changes and shouldn't be included before Version 3.0

The goal if this change is to give the user a bit more posibilities when it comes to what excactly is send to the other device. But looking forwar into the future, the adding of specific EventArgs to the event parameters give the option to easily add more options to the events, without a breaking change.

By now I included the event args for the onRead and onWrite events. They give the options to either send custom data back to the device or (in case of onWrite) to not save the data that was received. Additionally onWrite now gets the old and the new data, so that the user has both.

yannikHoeflich and others added 11 commits July 30, 2025 08:30
Endlich gefixed. Funktioniert jetzt wieder

See merge request yho/esp-nimble-cpp!1
Merge wieder rein. Änderungen an 'onRead' und 'onWrite'

See merge request yho/esp-nimble-cpp!2
Fix: OnWriteEventArgs - String is cut short if it contains a '\0'

See merge request yho/esp-nimble-cpp!3
@h2zero
Copy link
Owner

h2zero commented Aug 25, 2025

I like this idea. It doesn't need to be a breaking change, the new callbacks can be added as an overload in addition to the originals.

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

Successfully merging this pull request may close these issues.

2 participants