Replies: 10 comments
-
i posted a similar question in WiFiNINA repo site |
Beta Was this translation helpful? Give feedback.
-
as the library doesn't set SoftAP persistent start, the AP only runs if the sketch started it. |
Beta Was this translation helpful? Give feedback.
-
if the esp has commands like AT+CWMODE_DEF and AT+AUTOCONN to start (softap mode / station mode / autoconnect ) ... which do you think is the criteria in WiFiEspAT and WiFiNINA to NOT set these modes/connections start at boot?? ... this way who need are forced to plug an ftdi and send CWMODE_DEF by hand as the libs dont set it if somebody dont want the mode to be saved just dont use setPersistent() ... as currently setPersistent() dont saves all the modes so is not fully functional, in my humble point of view ... could you clarify this criteria a little more? .. thanks |
Beta Was this translation helpful? Give feedback.
-
SetupPersistentWiFiConnection has
endAP(true) or endAP() with setPersistent disable automatic start of SoftAP |
Beta Was this translation helpful? Give feedback.
-
maybe i didn't explain myself enough, this is my situation, maybe somebody else have a similar one i am developing a system that works together between arduino and my server (http + php + mariadb), a low cost irrigation system, but also could be a domotics or an automation one when the farmer receives the device (arduino + esp8266) he must provision his wifi for the system starts to run.... then the wifi access should be saved and started automatically, and the farmer (often not so skilled in technology) should NOT enter wifi credentials everytime the system shuts down (by energy failures, signal lost or whatever) so my question actually is... how can i make the esp8266 save wifi credentials and CONNECT AUTOMATICALLY when boot using this library... because i don't understand why it wasn't designed to auto-connect, a flaw imho eehhmm ... backing the original question xD ... is there some wrapper for AT+CWMODE_CUR? to query which mode the esp is currently running? (station and/or softap).. or with another commands for each mode or something? .... in some conditions i need to know if softap mode is running (with or without clients), my further sketch running flow depends on this |
Beta Was this translation helpful? Give feedback.
-
https://github.com/khoih-prog/WiFiManager_Generic_Lite |
Beta Was this translation helpful? Give feedback.
-
i had seen ConfigurationAP example but it doesn't satisfy these questions:
|
Beta Was this translation helpful? Give feedback.
-
you can't. but you can stop it and then it is not running or start it and then it is running. STA connection can drop so we need a status() function. but we have full control over SoftAP.
the STA connection takes time so it is better for WiFiEspAT to let the esp start it as soon as possible and do it asynchronous to setup(), while SoftAP starts almost immediately. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
if you make a good pull request, I merge it |
Beta Was this translation helpful? Give feedback.
-
hi... i need to know if my esp is working on softap mode (not exclusive)... my first instinct tell me to use the
status()
commandWL_AP_LISTENING
orWL_AP_CONNECTED
WL_AP_LISTENING
is just used once inWiFiClass::beginAP()
, whileWL_AP_CONNECTED
isn't even mentionedAT+CWMODE_CUR?
/AT+CWMODE?
command wrapper, the only i saw is inEspAtDrvClass::reset()
functionso i think i have currently no way to know if my softap is running or not (maybe the same with station mode)
looking the source, i noticed the
status()
function is mainly targeted to station mode... and talking about WiFiNINA api, i dont know what status it would return me if i have both station+softap modes enabled, is ambiguous... or both modes running but no clients connected, or both modes running but one with clients and the other no... maybe it should have 2 statuses, one for station mode and another one for softap modeBeta Was this translation helpful? Give feedback.
All reactions