mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #923] Use Wifi Manager With Lora Without connecting to Wifi #782
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#782
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 @08435051 on GitHub (Aug 12, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/923
Hello I have a project were I'm using an esp32 TTGO(lora).
What I would like to do is open the AP, type in costume parameters (using Spiffs) and save without having to connect to any wifi.
Because the boards are Lora I do not want to connect to any networks I just want to be able to update custom settings using the AP Spiffs custom method.
IS there something I can update in the library were it will save the setting without putting in an SSID and Password.
@tablatronix commented on GitHub (Aug 12, 2019):
you can do this in the development branch, you can even disable the wifi menu and use setup instead for custom parameters as they are now separate from wifi
@08435051 commented on GitHub (Aug 13, 2019):
Thank you very much Shawn that removed the Wi-Fi menu. The last problem I seem to have is it’s not saving the custom parameters. If I click on setup then enter mqtt server when the device is turned off the setting are lost.
Thank you in advance .
From: Shawn A notifications@github.com
Sent: Tuesday, 13 August 2019 12:22 AM
To: tzapu/WiFiManager WiFiManager@noreply.github.com
Cc: Hanson, Nathan H hanson.nathan.h@edumail.vic.gov.au; Author author@noreply.github.com
Subject: Re: [tzapu/WiFiManager] Use Wifi Manager With Lora Without connecting to Wifi (#923)
you can do this in the development branch, you can even disable the wifi menu and use setup instead for custom parameters as they are now separate from wifi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftzapu%2FWiFiManager%2Fissues%2F923%3Femail_source%3Dnotifications%26email_token%3DAJRAN5UKW2GIPTYFIVUJHBDQEFWYDA5CNFSM4IK5EDDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4CV3TY%23issuecomment-520445391&data=02%7C01%7Chanson.nathan.h%40edumail.vic.gov.au%7Ccf8021ffa0d14ab027c608d71f306ec7%7Cd96cb3371a8744cfb69b3cec334a4c1f%7C0%7C0%7C637012165193965517&sdata=ZezI6AXLn0t5s%2FK35rPxPdXLHBNa5vo4DJVNh8kPPaQ%3D&reserved=0, or mute the threadhttps://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJRAN5TQBPZCNMDOL7O7FBLQEFWYDANCNFSM4IK5EDDA&data=02%7C01%7Chanson.nathan.h%40edumail.vic.gov.au%7Ccf8021ffa0d14ab027c608d71f306ec7%7Cd96cb3371a8744cfb69b3cec334a4c1f%7C0%7C0%7C637012165193975511&sdata=gfJKeEKi1GDVeuJDm%2B8gWlQilU6iEQPcGibnZ0SW1g4%3D&reserved=0.
IMPORTANT - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education and Training.
@tablatronix commented on GitHub (Aug 13, 2019):
Wm does not save anything you will have to retrieve and save in your code since storage is up to you, A param child class to save to spiffs might be cool
@08435051 commented on GitHub (Aug 13, 2019):
Yep Spiffs would be neat.
If I add mqtt server name in setup then connect to my wifi, SF parameters get saved.
I added below code to to AutoConnectWithFSParameters(which works by removing wifi)
std::vector<const char *> menu = {"param","close","sep","erase","restart","exit"};
wm.setMenu(menu); // custom menu, pass vector
but because I don't want to connect to wifi just have FS parameters saved under setup what would I need to change in the code? At the moment the wifi is going into a blocking loop and sf parameters are not saved because no connection is made.
I did think about putting in wm.setConfigPortalBlocking(false); Although that gets passed the wifi issue it then doesn't open up the captive portal even though AutoConnectAP shows in the wifi list.
I'm using Mqtt as an example. I'm going to add a field called Key were the customer will add a custom key that encrypts data over Lora.
@tablatronix commented on GitHub (Aug 13, 2019):
The parameter example show how this works and adds spiffs saving
@08435051 commented on GitHub (Aug 15, 2019):
Thank you so much for your help
I managed to get it to save by going to configure wifi. I left SSID and Password blank, entered information into custom parameters and hit saved, that saved without connecting to a Wi-Fi network.
Because I don’t want to have the Wi-Fi con fig show I added
std::vector<const char *> menu = {"param","close","sep","erase","restart","exit"};
wm.setMenu(menu); // custom menu, pass vector
This removes Wifi Config. When I click on set up and enter custom information and hit save its not saving. What is it that I’m doing wrong.
I have attached my code
Regards
From: Shawn A notifications@github.com
Sent: Tuesday, 13 August 2019 10:56 PM
To: tzapu/WiFiManager WiFiManager@noreply.github.com
Cc: Hanson, Nathan H hanson.nathan.h@edumail.vic.gov.au; Author author@noreply.github.com
Subject: Re: [tzapu/WiFiManager] Use Wifi Manager With Lora Without connecting to Wifi (#923)
The parameter example show how this works and adds spiffs saving
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftzapu%2FWiFiManager%2Fissues%2F923%3Femail_source%3Dnotifications%26email_token%3DAJRAN5SWD7WYXZBW6RAUV5LQEKVNDA5CNFSM4IK5EDDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4FSABI%23issuecomment-520822789&data=02%7C01%7Chanson.nathan.h%40edumail.vic.gov.au%7C8c1ab07c6d9c43f60e9f08d71fed909c%7Cd96cb3371a8744cfb69b3cec334a4c1f%7C0%7C0%7C637012977523973614&sdata=kNLbIpNycloVO98OvCTuvkC2RBZB5QiZz66qnjI6y7Y%3D&reserved=0, or mute the threadhttps://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJRAN5UQURLACO3U3MW72BTQEKVNDANCNFSM4IK5EDDA&data=02%7C01%7Chanson.nathan.h%40edumail.vic.gov.au%7C8c1ab07c6d9c43f60e9f08d71fed909c%7Cd96cb3371a8744cfb69b3cec334a4c1f%7C0%7C0%7C637012977523973614&sdata=LndS0S5gDFX%2FpeY3PL%2Fa8cgufHvKjOr%2F39S%2FL8jw6UA%3D&reserved=0.
IMPORTANT - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education and Training.
@08435051 commented on GitHub (Aug 15, 2019):
@tablatronix commented on GitHub (Aug 16, 2019):
Thanks for the code, Ill make sure it is getting to the sketch first, and that there is not a bug