8000 Added arduino security examples by chegewara · Pull Request #315 · nkolban/esp32-snippets · GitHub
[go: up one dir, main page]

Skip to content

Added arduino security examples #315

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

Merged
merged 9 commits into from
Dec 23, 2017
Merged

Added arduino security examples #315

merged 9 commits into from
Dec 23, 2017

Conversation

chegewara
Copy link
Collaborator

As for now those examples will work only with modified library since we still are waiting for new arduino-esp32 commit with c++ exceptions included. ESP32Arduino.zip is added, but its only to excercise with new features.

ESP32_BLE.zip

@nkolban nkolban merged commit 15b6fc0 into nkolban:master Dec 23, 2017
@chegewara
Copy link
Collaborator Author

#302 addressed

@felixzhang97
Copy link

Hello, i am referring to BLE_server_passkey.ino.
Can you help me how to set hardcoded passkey instead of randomly generated one?
Thanks before

@chegewara
Copy link
Collaborator Author

I have no idea if its possible, because all passkeys are generated by bluedroid stack. I will have to ask devs.

@felixzhang97
Copy link

Hello, do you have any update?

@chegewara
Copy link
Collaborator Author
chegewara commented Feb 23, 2018

@felixzhang97
If you are asking about hardcoded passkey then we are waiting, it has been promised but not implemented yet in esp-idf

@felixzhang97
Copy link

@chegewara alright then, thankyou
glad to see progress on the development

@RottenVanSuti
Copy link

Hello @chegewara What do you mean by modified library? Are the changes in code that you did in #293 ?

@chegewara
Copy link
Collaborator Author

I remember now, there was time when security was not implemented in arduino because arduino library for some time was not updated on github. So i decided to export zip library like is described here since some arduino users dont have option to do it:

https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/ArduinoBLE.md

But this post is outdated now.

@RottenVanSuti
Copy link

oh ok @chegewara so If I understood, I can make use of the BLE security examples you provide here without modifying any library

@chegewara
Copy link
Collaborator Author

Yes, and if for some reason you have any problems please open issue and i will try to help.

@RottenVanSuti
Copy link

Ok, I´ll give it a try, thanks a lot @chegewara

@skyng22003
Copy link

Thanks for providing the examples @chegewara

Hi I have the most recent version of ESP32_BLE and get a compile error

'LOG_TAG' was not declared in this scope
esp_log_buffer_hex(LOG_TAG, auth_cmpl.bd_addr, sizeof(auth_cmpl.bd_addr));

Has the security features not been implemented in the main library?

@chegewara
Copy link
Collaborator Author
chegewara commented Aug 3, 2018

In which file you have this error? You can find this line and change LOG_TAG with some string or just #declare LOG_TAG my_tag

@skyng22003
Copy link

Thanks for the quick reply, it's in the BLE_client_numeric_confirmation.ino and BLE_client_passkey.ino
Do you mean #define?

@skyng22003
Copy link

If I comment out esp_log_buffer_hex(LOG_TAG, auth_cmpl.bd_addr, sizeof(auth_cmpl.bd_addr));
this line everything compiles fine but the program crashes when it connects to the BLE_Server

@chegewara
Copy link
Collaborator Author

Could you open new issue and provide logs when it crash? Also ty to use this tool:
https://github.com/me-no-dev/EspExceptionDecoder

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

Successfully merging this pull request may close these issues.

6 participants
0