Skip to content

Conversation

@synapse-2
Copy link

Hello

I have updated the lib to have the following

  1. "Class of device" support spec from https://www.ampedrftech.com/datasheets/cod_definition.pdf when doing Bluetooth advertisement both 4.0 and 5.0 versions

  2. Updated a define in the kconfig called “NIMBLE_USE_MAGIC_ENUM” which is by default set to false; it can be set to true if user wants to enable magic emum https://github.com/Neargye/magic_enum lib based log errors to be shown

  3. When I used this lib with AurdinoIOT libs from (https://github.com/arduino-libraries/ArduinoIoTCloud) I got the error that READ and WRITE Enums are being redefined. Best way to change that is to use class based enums but that would break all items. So I created a new define NIMBLE_USING_ARDUINO_IOT which by default is set to false; when set to yes it will rename the NIMBLE_PROPERTY::READ to NIMBLE_PROPERTY::BLE_READ and NIMBLE_PROPERTY::WRITE to NIMBLE_PROPERTY::BLE_WRITE to avoid the clash

…s for using magic enum and Arduino IOT support
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.

1 participant