ogabrielinacio / esp_provisioning_ble

A Flutter plugin for provisioning ESP32 modules with Ble
MIT License
10 stars 3 forks source link

Any way to get this work with Security0 #6

Closed garudaonekh closed 7 months ago

garudaonekh commented 7 months ago

Hi, Due to some problem, our ESP32 work only with Security0(i.e without any POP pin). Can this git work with that?

I run this code in Android, it can detect the ESP32, but it failed at POP PIN.

I have little knowledge on Flutter. If it works with Security1, get it to work with Security0 is simple.

Thanks;

ogabrielinacio commented 7 months ago

I tried the app with the ESP32 security 1 config like const char *pop = "";, and it failed, i will try to fix that. I do not tried yet the security 0 yet, i will do this in a comming future.

Your request will be added to the package's TODO list. However, i recommend using the security 1, or security 2, but security 2 is also not implemented in this package yet. For obvious security reasons, do not use security 0 if you have the option to use 1, as security level 0 simply transmits plain text without encryption.

image

Reference: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/provisioning/provisioning.html#security-schemes

garudaonekh commented 7 months ago

I tried the app with the ESP32 security 1 config like const char *pop = "";, and it failed, i will try to fix that. I do not tried yet the security 0 yet, i will do this in a comming future.

Your request will be added to the package's TODO list. However, i recommend using the security 1, or security 2, but security 2 is also not implemented in this package yet. For obvious security reasons, do not use security 0 if you have the option to use 1, as security level 0 simply transmits plain text without encryption.

image

Reference: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/provisioning/provisioning.html#security-schemes

I try your code with Security1 and it works. However, my project require Arduino and so far i can't get Security1 to work in Arduino.

ogabrielinacio commented 7 months ago

@garudaonekh This package was created and tested with an ESP32, i have not yet tested it with Arduino. Your request will be included in the list, but I would like to inform you that it will not be a priority, since there are others more important before, such as the one to test and perform the example with other Bluetooth packages, being this the main one, and as you commented, I would like to try to add security 2, and if time permits, add security 0, since it is not a priority, since there is no security in the connection.