Skip to content

Conversation

@PilnyTomas
Copy link
Contributor

Based on issue #7748
The main problem is simply case size for the device name:

The IDF example is using upper case: const char *ssid_prefix = "PROV_"; line 210

While the Arduino is using lower case (only the first letter is upper case):

WiFiProv.beginProvision(WIFI_PROV_SCHEME_BLE, WIFI_PROV_SCHEME_HANDLER_FREE_BTDM, WIFI_PROV_SECURITY_1, "abcd1234", "Prov_123");

This PR changes the device name to the same as the IDF name and also to what is expected by the app on default settings.
This should remove the confusion for first-time users.

This PR also added function for printing QR code (simply copied from the IDF example)

This PR also updates the README file.

@PilnyTomas PilnyTomas self-assigned this May 16, 2023
#include <esp_wifi.h>
#include <esp_event.h>
#include <esp32-hal.h>
#include "qrcode.h"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should check if that include exists and only then include and provide the new function. When building as component and qrcode component is not additionally installed, compilation will fail: https://github.com/espressif/arduino-esp32/actions/runs/4989420314/jobs/8933324447?pr=8209#step:4:1408

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was expecting this to be available for all SoCs, I can see that is not, but do not understand why?
How can I test it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it exists from the lib-builder, because it's installed with RainMaker, but as clean IDF+Arduino-as-component it does not exist for ANY chip.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be resolved - CI passed

@PilnyTomas PilnyTomas requested review from me-no-dev May 17, 2023 11:35
@me-no-dev me-no-dev merged commit 82227e6 into espressif:master May 31, 2023
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.

2 participants