Can't compile Shining Keyboard example
Fossil01 opened this issue · 1 comments
Fossil01 commented
Trying to compile the keyboard example in the IDE results in the errors below.
Arduino IDE 1.8.13
OS: MacOS
BN: Arduino Nano 33 BLE
VID: 2341
PID: 805a
/Users/REMOVED/Documents/Arduino/libraries/Mbed_BLE_HID/src/Mbed_BLE_HID.cpp: In member function 'long unsigned int MbedBleHID::connection_time() const':
/Users/REMOVED/Documents/Arduino/libraries/Mbed_BLE_HID/src/Mbed_BLE_HID.cpp:70:10: error: 'millis' was not declared in this scope
return millis() - lastConnection_;
^~~~~~
/Users/REMOVED/Documents/Arduino/libraries/Mbed_BLE_HID/src/Mbed_BLE_HID.cpp:70:10: note: suggested alternative: 'malloc'
return millis() - lastConnection_;
^~~~~~
malloc
/Users/REMOVED/Documents/Arduino/libraries/Mbed_BLE_HID/src/Mbed_BLE_HID.cpp: In member function 'virtual void MbedBleHID::onConnectionComplete(const ble::ConnectionCompleteEvent&)':
/Users/REMOVED/Documents/Arduino/libraries/Mbed_BLE_HID/src/Mbed_BLE_HID.cpp:159:23: error: 'millis' was not declared in this scope
lastConnection_ = millis();
^~~~~~
/Users/REMOVED/Documents/Arduino/libraries/Mbed_BLE_HID/src/Mbed_BLE_HID.cpp:159:23: note: suggested alternative: 'malloc'
lastConnection_ = millis();
^~~~~~
malloc
exit status 1
Error compiling for board Arduino Nano 33 BLE.
Deleted user commented
I thought I had updated all boards but the Mbed version was still at 1.1.2, it's updated to 1.3.1 now and now it seems to be a similar issue as #3 so I will close this one.
/Users/REMOVED/Documents/Arduino/libraries/Mbed_BLE_HID/src/Mbed_BLE_HID.cpp: In member function 'void MbedBleHID::postInitialization(BLE&)':
/Users/REMOVED/Documents/Arduino/libraries/Mbed_BLE_HID/src/Mbed_BLE_HID.cpp:105:14: error: 'ConnectionParams_t' in 'Gap {aka class ble::interface::Gap<ble::generic::GenericGap<ble::pal::vendor::cordio::Gap, ble::pal::SecurityManager<ble::pal::vendor::cordio::CordioSecurityManager<ble::generic::GenericSecurityManager<ble::pal::vendor::cordio::CordioSecurityManager, ble::vendor::cordio::SigningEventMonitor> >, ble::generic::GenericSecurityManager<ble::pal::vendor::cordio::CordioSecurityManager, ble::vendor::cordio::SigningEventMonitor> >, ble::generic::GenericSecurityManager<ble::pal::vendor::cordio::CordioSecurityManager, ble::vendor::cordio::SigningEventMonitor> > >}' does not name a type
const Gap::ConnectionParams_t connectionParams = {
^~~~~~~~~~~~~~~~~~
/Users/REMOVED/Documents/Arduino/libraries/Mbed_BLE_HID/src/Mbed_BLE_HID.cpp:111:7: error: 'Gap {aka class ble::interface::Gap<ble::generic::GenericGap<ble::pal::vendor::cordio::Gap, ble::pal::SecurityManager<ble::pal::vendor::cordio::CordioSecurityManager<ble::generic::GenericSecurityManager<ble::pal::vendor::cordio::CordioSecurityManager, ble::vendor::cordio::SigningEventMonitor> >, ble::generic::GenericSecurityManager<ble::pal::vendor::cordio::CordioSecurityManager, ble::vendor::cordio::SigningEventMonitor> >, ble::generic::GenericSecurityManager<ble::pal::vendor::cordio::CordioSecurityManager, ble::vendor::cordio::SigningEventMonitor> > >}' has no member named 'setPreferredConnectionParams'; did you mean 'PreferredConnectionParams_t'?
gap.setPreferredConnectionParams(&connectionParams);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
PreferredConnectionParams_t
/Users/REMOVED/Documents/Arduino/libraries/Mbed_BLE_HID/src/Mbed_BLE_HID.cpp:111:37: error: 'connectionParams' was not declared in this scope
gap.setPreferredConnectionParams(&connectionParams);
^~~~~~~~~~~~~~~~
/Users/REMOVED/Documents/Arduino/libraries/Mbed_BLE_HID/src/Mbed_BLE_HID.cpp:111:37: note: suggested alternative: 'connection_time'
gap.setPreferredConnectionParams(&connectionParams);
^~~~~~~~~~~~~~~~
connection_time
/Users/REMOVED/Documents/Arduino/libraries/Mbed_BLE_HID/src/Mbed_BLE_HID.cpp:120:19: error: 'GapAdvertisingData' has not been declared
.setFlags(GapAdvertisingData::BREDR_NOT_SUPPORTED
^~~~~~~~~~~~~~~~~~
/Users/REMOVED/Documents/Arduino/libraries/Mbed_BLE_HID/src/Mbed_BLE_HID.cpp:121:19: error: 'GapAdvertisingData' has not been declared
| GapAdvertisingData::LE_GENERAL_DISCOVERABLE
^~~~~~~~~~~~~~~~~~
exit status 1
Error compiling for board Arduino Nano 33 BLE.