Skip to content
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

Error compiling eqiva_key_ble.cpp. error: 'esp_random' was not declared in this scope; did you mean 'srandom'? #20

Open
rubendediegomartinez opened this issue Dec 20, 2024 · 5 comments

Comments

@rubendediegomartinez
Copy link

Hi, first of all I would thank you for your code.

My issue:

  • When compiling I get this error (at the end of the post you can see a graphic capture):

Compiling .pioenvs/esp-bt-proxy-eqiva2/src/esphome/components/eqiva_key_ble/eqiva_key_ble.cpp.o
Compiling .pioenvs/esp-bt-proxy-eqiva2/src/esphome/components/esp32_ble/ble.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

  • The first time I noticed it was with ESPHome Device Builder version: 2024.12.0. It also happens in version 2024.12.1.

  • I didn't check if changing "esp_random" by the subgested "srandom" the issue is solved.

Please, my anybody help me.

Thank you very much.

Captura de pantalla 2024-12-20 102025

@digaus
Copy link
Owner

digaus commented Dec 20, 2024

Thanks for the issue. Have not updated yet but will look into it

@digaus
Copy link
Owner

digaus commented Dec 21, 2024

Can you try again? Make sure to set refresh: 0s to get latest version

40cdca0

@user45876
Copy link

Compiling and working again here, thank you very much, digaus. Thanks Ruben, for opening the issue.

@rubendediegomartinez
Copy link
Author

Can you try again? Make sure to set refresh: 0s to get latest version

40cdca0

Apparently it works.
refresh: 0s needed.

Thank you very much.

@rubendediegomartinez
Copy link
Author

Compiling and working again here, thank you very much, digaus. Thanks Ruben, for opening the issue.

Don't mention it!
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants