mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 17:15:53 +03:00
[GH-ISSUE #63] How to assign blynk_token #43
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mocheffendi on GitHub (Jan 16, 2016).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/63
i need help how to read blynk_token from portal and assign to blynk.config or blynk.begin?
thanks
ME
@tzapu commented on GitHub (Jan 16, 2016):
hi, look in the FS example
https://github.com/tzapu/WiFiManager/blob/master/examples/AutoConnectWithFSParameters/AutoConnectWithFSParameters.ino
@mocheffendi commented on GitHub (Jan 17, 2016):
thanks for your fast response
blynk_token = custom_blynk_token.getValue();
Blynk.config(blynk_token);
//Blynk.begin(blynk_token);
Serial.println(blynk_token);
if I use Blynk config no error on compile but esp is not on network
but if i use Blynk begin, it cant compile
because blynk_token is const char but Blynk.begin need char array.
how to convert const char to char array
@mocheffendi commented on GitHub (Jan 17, 2016):
@tzapu commented on GitHub (Jan 18, 2016):
i replied on the blynk forum, does that work?
@mocheffendi commented on GitHub (Jan 18, 2016):
Dear Tzapu,
I need to use your parameter blynk token in my sketch but it is not work.
The goal is ESP 12E can be reset and connect to new wifi and new token without upload sketch again and again.
Please help
@tzapu commented on GitHub (Jan 18, 2016):
hi
did you try this
http://community.blynk.cc/t/external-esp8266-configuration/1820/34?u=tzapulica
@mocheffendi commented on GitHub (Jan 18, 2016):
Yes I did,
After input SSID and password and blynk auth token at portal, then your library wifi manager use the ssid and password to connect to wifi network, after connected and then I use blynk auth token from portal with syntax like this
blynk_token = custom_blynk_token.getValue();
And then
Blynk.config(blynk_token). But it is not work.
You can see from my sketch below.
@tzapu commented on GitHub (Jan 18, 2016):
hi, could you give me your serial output as well? cheers
@mocheffendi commented on GitHub (Jan 18, 2016):
hi, here is the serial output :
@tzapu commented on GitHub (Jan 18, 2016):
and after, does Blynk.run say connecting or anything?
if you put
Blynk.config("419f17ecfe0a45ba88580f6977cb038");directly as a test, does it work?@mocheffendi commented on GitHub (Jan 18, 2016):
hi,
there is one char is missing in the last
must be : 419f17ecfe0a45ba88580f6977cb0388
but actual : 419f17ecfe0a45ba88580f6977cb038
@mocheffendi commented on GitHub (Jan 18, 2016):
problem solved 👍
WiFiManagerParameter custom_blynk_token("blynk", "blynk token", blynk_token, 32);
modify the length of char from 32 to 33
WiFiManagerParameter custom_blynk_token("blynk", "blynk token", blynk_token, 32);
thanks Tzapu, your library is awesome
Best Regards
ME
@tzapu commented on GitHub (Jan 18, 2016):
glad you caught it, a commit o posted an hour or so ago did exactly that, set a higher size on char
and thanks for your nice words