BLYNK
BLYNK.IO       📲 GETTING STARTED       đź“— DOCS       âť“HELP CENTER       👉 SKETCH BUILDER

Wi-Fi setup credentials problem

Hello!
We are trying to add the Wi-Fi credentials to the new device (device configuration - Wi-Fi provisioning) on a Android mobile phone, yet every time after the step, where you put in the Wi-Fi name and password the connection between device and mobile phone is interupptted and the Wi-Fi can not be set - the device will not connect and operate. On the other hand, it works fine on the IoS devices.

Thank you for your help!

What does your serial monitor show when provisioning via iOS, and what does it show when provisioning via Android?

Pete.

Hello and thank you for the reply.

On the android phone in the serial monitor it shows:
[619027] AP IP: 192.168.4.1
[639532] Sending board info…
[639732] Sending networks…
[722430] Sending board info…
[722640] Sending networks…
This is the last thing it shows, and the in the mobile application says that the Wi-Fi connection was interuppted.

On the IoS telephone it shows in the serial monitor the same as on the android, and from then on it connects to the Wi_Fi normally (the credentials can be set noramlly).

I wanted to see the full serial output, from boot-up.

Pete.

This is all thet puts out in serial monitor on Android mobile wifi setup.
[639532] Sending board info…
[639732] Sending networks…

On the photos you can see how it looks like on the mobile app.
When we try to reconnect, nothing happens, even manually. On the IoS it proceeds and establishes the wifi connection.
The app on the Android mobile phones is up to date - we have tested several different android, it does not work.
Thank you!

This is all thet puts out in serial monitor on Android mobile wifi setup.
[639532] Sending board info…
[639732] Sending networks…
[/quote]

In that case, you have a problem, as you should see the Blynk splash screen with library version and device info, plus additional info like this…

[quote=“LanZupancic, post:5, topic:57548”]

Have you commented-out/deleted the #define BLYNK_PRINT Serial and #define APP_DEBUG lines from the Edgent example?

Pete.

@LanZupancic could you please send mobile app logs? @BlynkAndroidDev FYI.

I cannot send them as an attachment here due to unsupported data format. Can I send it to you by email?

sure

Here is the serial output from bottom up.

Looking at the length of the black bar that you’ve used to block-out the SSID, your device name may be too long.

Pete.

Hello!
We have shortened the AP SSID by half and also removed all the spaces in the name and then it worked also on Android telephone - we could set the Wi-FI credentials.

It seems to be a problem if there are spaces or the name of the templete is too long.

Can you please check what are the restrictions with the templeate name which is then used in AP SSID name?

Thank you!

@PeteKnight thanks Pete for the help.
@LanZupancic It’s a known issue, and was fixed recently - https://github.com/blynkkk/blynk-library/issues/553 in the library, but new version is not yet released. In short, the maximum SSID name length is 32 chars (ESP limitation).

@vshymanskyy could we please force new library version update so we get less errors like that?

1 Like

Ok, thank you for the answer! For now we will use less than 32 chars.
For in the future can the lenght be extended?

Probably not. But I’m not sure here.