Repository navigation
Labels
conclusion: resolvedIssue was resolvedtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project
Description
When you build the code in this library there are several warnings printed
-
Order member initialization on(fixed by Fix warnings #302)BLELocalCharacteristic -
Unused variables in:(fixed by Fix warnings #302)-
HCIClass::tryResolveAddress -
HCIClass::handleEventPkt(the whole else if statement did nothing) -
L2CAPSignalingClass::handleSecurityData(one initialization should be inside ofBLE_TRACE) -
BluetoothCryptoToolbox::f5 -
BluetoothCryptoToolbox::testAh -
BluetoothCryptoToolbox::testg2
-
-
Uninitialized variable in(fixed by Fix warnings #302)L2CAPSignalingClass::handleSecurityData - Unenumerated case in
ArduinoBLE/src/utility/HCI.cpp(would be fixed by merge of fix(HCI): missing LE_Event_Mask #386)
If someone could review that PR most of these things would be fixed.
If someone tells me what 0x0A means in that unenumerated case, I'm happy to add that to the enum as well
Additional context
Additional reports
- Lots of Compiler Warnings - At least if I build for a Teensy 4.1 or Micromod #274
- HCI.cpp:991:7: error: case value '10' not in enumerated type 'LE_META_EVENT' #346
Related
Reacted by Gianpaolo Macario
Metadata
Metadata
Assignees
Labels
conclusion: resolvedIssue was resolvedtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project
Activity
roleroz commentedon Aug 4, 2023
This is still incomplete, there is also the unenumerated case in ArduinoBLE/src/utility/HCI.cpp, if someone can tell me what does 0x0A means in that file, I'll create a PR for it
ataweg commentedon Jan 17, 2024
Issue "Unenumerated case in ArduinoBLE/src/utility/HCI.cpp" not fixed . Depending on the Preferences "Compiler warnings" set to All or More there is an error message:
fpistm commentedon Mar 14, 2025
This 0x0A value was introduced with PR #156
It seems to be a the same than
CONN_COMPLETEwith only 2 fields added in the struct:But never filled. Only print when BLE_TRACE is enabled.
Maybe @unknownconstant could comment on this?
fix(HCI): missing LE_Event_Mask
unknownconstant commentedon Mar 21, 2025
Let me take a look - it's been a while since I've been through this code
fpistm commentedon Mar 21, 2025
I think I've found which LE META EVENT it is.
It seems to be the LE Enhanced Connection Complete Event.
I would propose this as a fix:
fix(HCI): missing LE_Event_Mask
fix(HCI): missing LE_Event_Mask
fix(HCI): missing LE_Event_Mask
fix(HCI): missing LE_Event_Mask
fix(HCI): missing LE_Event_Mask
fix(HCI): missing LE_Event_Mask
fix(HCI): missing LE_Event_Mask