h2zero / NimBLE-Arduino

A fork of the NimBLE library structured for compilation with Arduino, for use with ESP32, nRF5x.
https://h2zero.github.io/NimBLE-Arduino/
Apache License 2.0
700 stars 146 forks source link

Update example to initialize pAdvertising after NimBLEDevice::init() #545

Closed ankgt closed 1 year ago

ankgt commented 1 year ago

Initializing the pAdvertising variable from NimBLEDevice::init() when defining it globally results in the device name getting truncated. Corrected to initialize it after NimBLEDevice::init().

ankgt commented 1 year ago

My first ever PR on GitHub! Please let me know if I have done something incorrectly. Thanks.

h2zero commented 1 year ago

Congrats on the first PR and thank you :smile: