-
-
Notifications
You must be signed in to change notification settings - Fork 171
Example NimBLE_multi_advertiser.ino not working on nRF52840 #929
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
Comments
Hello @djdehaan, do you see anything in the logs, phone and nrf? |
Hi h2zero, The platform.ini is:
The code I use is like this: main.h
And main.cpp
The logging on the monitor shows this
The zero's at the end are repeating until the device reboots as designed in the demo code - showing that it is alive an that there is not a call to the onConnect or anything else. I don't know how to see logging on my phone. I use BLE Scanner, I see the device, I can click CONNECT and the it shows Connected, discovering services..., but after some seconds the status is Disconnected again. When I upload this code to a ESP32S3 it will connect and I can look into the characteristics. Do you have any idea?? |
you mean, using NimBLEAdvertisement in stead of NimBLEExtAdvertisement? I found out how and am now also able to see these loggings using nRF connect app! Same result: |
Thanks to both of you for the info, I will have a look to see what could be causing this, I suspect an issue in the stack which is not always easy to find. |
Maybe relevant: connecting with my phone to the extended advertiser results in exact the same errors and messages. |
@h2zero Any luck finding this issue? Would appreciate a fix very much! |
@djdehaan I've been able to reproduce it but I've been too busy with other (paid) work to find the cause yet. Hopefully this week. |
@h2zero Great! It indeed solves the problem. I found a way to use this fixed version and now indeed I can connect to the device using extended advertising! For who want to know: i downloaded this version as a lib in the project folder /lib manually
Will that mean that in the next release I can revert back to the platformio lib_deps parameter?
|
Closing this as fixed in #891 You are able to reference this in platformio via the commit sha:
|
I burn the exact script of the multi-advertiser BT5 example with one corrected compile error:
legacyConnectable.setAddress(NimBLEAddress("DE:AD:BE:EF:BA:AD", 1));
on a nRF52840. The nRF is loaded with the provided adafruit bootloader, and is using the n-able platform. When running, 2 devices do appear on a phone. The legacy-one (like the other one) shows "connectable" but is not connectable. After short trying, it keeps not connected. What goes wrong? Who has tried this example on a nRF52840?
I tried the exact same code and the same specifics in the platform.ini on a ESP32S3, and there it works like a charm! So what goes wrong on the nRF52840?
Thanks for any help,
Dirk Jan
The text was updated successfully, but these errors were encountered: