keyble
keyble copied to clipboard
keyble compile fails with error "'esp_random' was not declared in this scope; did you mean 'srandom'?"
After updating to esphome 2024.12, compiling a keyble bluetooth proxy faile with the following error:
'esp_random' was not declared in this scope; did you mean 'srandom'?
This is likely due to esphome changing the default esp idf version: https://esphome.io/changelog/2024.12.0.html
ESPHome has now updated the core ESP32 code to use ESP-IDF 5.1.5.
Compiling .pioenvs/keyble-wohnungstuer/src/esphome/components/md5/md5.cpp.o
src/esphome/components/eqiva_key_ble/eqiva_key_ble.cpp: In member function 'void esphome::eqiva_key_ble::EqivaKeyBle::sendNonce()':
src/esphome/components/eqiva_key_ble/eqiva_key_ble.cpp:317:50: error: 'esp_random' was not declared in this scope; did you mean 'srandom'?
317 | clientState.local_session_nonce.append(1,esp_random());
| ^~~~~~~~~~
| srandom
Compiling .pioenvs/keyble-wohnungstuer/src/esphome/components/mdns/mdns_component.cpp.o
Compiling .pioenvs/keyble-wohnungstuer/src/esphome/components/mdns/mdns_esp32.cpp.o
*** [.pioenvs/keyble-wohnungstuer/src/esphome/components/eqiva_key_ble/eqiva_key_ble.cpp.o] Error 1
========================== [FAILED] Took 6.93 seconds ==========================
Thanks for your hard work regarding keyble :)