mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #317] Problem with custom parameters #267
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#267
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 @safari2 on GitHub (Feb 17, 2017).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/317
Hi.
I tried to store/load BLYNK_TOKEN with ESP_BLYNK_AutoConnectWithFSParameters example.
It seems to library truncates BLYNK_TOKEN for 31 bytes (now the lengths is 32 bytes);
Example 1)
I'm trying to store:
c365a207fc3549d5ba0e5828e39e09d9
loads:
c365a207fc3549d5ba0e5828e39e09d
Example 2)
I'm trying to store:
----------++++++++++----------++
console said:
*WM: ----------++++++++++----------++
but json calls:
{"mqtt_server":"","mqtt_port":"8080","blynk_token":"----------++++++++++----------+"}
one symbol is truncated.
I've updated WIFIManager and ArduinoJson libraries today.
@safari2 commented on GitHub (Feb 17, 2017):
Solved with this mod:
(-) WiFiManagerParameter custom_blynk_token("blynk", "blynk token", blynk_token, 32);
(+) WiFiManagerParameter custom_blynk_token("blynk", "blynk token", blynk_token, 36);
I suppose there are need to +1 byte for NULL terminated string. I've added more bytes for future reserving.
Also I've added in array declaration:
char blynk_token[36]
Please fix in example.