-
Notifications
You must be signed in to change notification settings - Fork 465
LECentral and LEPeripheral not compiling #1370
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
Try enabling Bluetooth in the menus. It takes significant RAM and flash, so isn't on by default. |
Thanks, that worked a charm.
Should add a comment to do the same in the examples.
…On Tue, Apr 11, 2023 at 5:14 PM Earle F. Philhower, III < ***@***.***> wrote:
Try enabling Bluetooth in the menus. It takes significant RAM and flash,
so isn't on by default. Tools->IP/Bluetooth Stack-> IPv4 + BT
—
Reply to this email directly, view it on GitHub
<#1370 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEDQSWKQMCTZVSX57RQB2LXAXXUZANCNFSM6AAAAAAW25SD2U>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Fixes #1370 Adds a simple helper assertion to tell the user how to enable BT if it's not enabled, instead of some odd compilation warnings about undefined functions.
Good suggestion. The new PR gives this error and aborts compile immediately:
|
Fixes #1370 Adds a simple helper assertion to tell the user how to enable BT if it's not enabled, instead of some odd compilation warnings about undefined functions.
Hello, thank you for your work. I'd enabled the Tools->IP Bluetooth Stack->ipv4 + BT option, for example iBeacon.ino fails with "Compilation error: 'UUID' does not name a type" LEPeripheral fails with many errors, among them /private/var/folders/4b/ywr8xsfj2bqcqw2593cpc_rc0000gp/T/.arduinoIDE-unsaved202341-24882-5sks23.pohrd/LEPeripheral/LEPeripheral.ino:54:30: error: 'BLEStatus' was not declared in this scope; did you mean 'PinStatus'? iBeaconScanner.ino fails with So it seems that I'm missing some small but crucial configuration step somewhere. I checked on the documentation and the previous issues but to no avail. Running version 3.1.1 of the core. Any guidance you can provide? |
wonderful work, thank you ! |
Hi --
First, thank you for the great work!
I am trying to compile the two examples. I see that the BTstack was changed to BTstackLib, and I downloaded the directory. The examples list shows BTStack, and the examples do have #include ,
but they both complain:
In file included from /Users/daveharris/Library/Arduino15/packages/rp2040/hardware/rp2040/3.1.1/libraries/BTstackLib/src/BTstackLib.cpp:41:
/Users/daveharris/Library/Arduino15/packages/rp2040/hardware/rp2040/3.1.1//pico-sdk/lib/btstack/src/ble/sm.h:228:1: error: 'irk_lookup_state_t' does not name a type
228 | irk_lookup_state_t sm_identity_resolving_state(hci_con_handle_t con_handle);
| ^~~~~~~~~~~~~~~~~~
Using library BTstackLib at version 1.0 in folder: /Users/daveharris/Library/Arduino15/packages/rp2040/hardware/rp2040/3.1.1/libraries/BTstackLib
Using library SPI at version 1.0 in folder: /Users/daveharris/Library/Arduino15/packages/rp2040/hardware/rp2040/3.1.1/libraries/SPI
I looked at hci.h and it appears to have an appropriate definition for irk_lookup_state_t
Can you help?
The text was updated successfully, but these errors were encountered: