Open tech9492 opened 8 months ago
@JAndrassy thank you very much for your quick response. I did come across #252 but was not sure if that was the solution.
Regarding WiFi.begin()
, would WiFi.setTimeout()
be the solution?
Thank you.
Regarding WiFi.begin(), would WiFi.setTimeout() be the solution?
what can your sketch do without WiFi connected to AP?
as first remove the useless wait time in WiFiClient.connect. this
while (!connected() && millis() - start < 10000)
delay(1);
it jus wastes 10 seconds if the connection ended with timeout in firmware
what can your sketch do without WiFi connected to AP?
It reads the value of input pin A3 and controls 2 pins(output). When pin A3 is LOW, it will activate a timer to switch outputs LOW. This portion of the code should be able to execute even without WiFi.
you can do 3 things with WiFi.begin: 1) don't try to connect every loop 2) run wifi scan before attempting to connect
maybe you can control the pins with MCU events/timers/interrupts so that they are independent from loop
you can do 3 things with WiFi.begin:
- don't try to connect every loop
- run wifi scan before attempting to connect
Thank you for the suggestions. Wifi scan before connecting seem to be a good workaround.
Regarding Client.connect()
, I applied all the required changes from #252 to my WiFiNINA library. I tried a timeout of 1000(1 second), it does not solve the issue.
Thank you.
applied all the required changes from https://github.com/arduino-libraries/WiFiNINA/pull/252 to my WiFiNINA library
the firmware too?
By firmware, do you mean server_drv.h?
I have modified the 4 files listed in #252. Did I miss something?
there are changes in the nina-fw for the NINA Esp32 module as linked in the description of the PR
there are changes in the nina-fw for the NINA Esp32 module as linked in the description of the PR
Just to confirm, is it Client connect timeout support #89?
Just to confirm, is it https://github.com/arduino/nina-fw/pull/89?
yes that is the PR for the firmware
I am a little lost now.
Where are firmware files located? Could you please guide me how to carry out this procedure.
Thank you.
Where are firmware files located?
in the repository with the PR of course
Hi all,
Below is the code operating on an Arduino RP2040 Nano Connect. I am facing an issue with WiFi/MQTT reconnection portion of my code. When WiFi and MQTT are connected, the code functions as expected. In the event that one is missing, it obstruct
void loop()
.I am guessing
WiFi.begin()
andClient.connect()
are both blocking. Is there any workaround I can apply?Thank you.