Arduino WiFi Rev2
Topic: Wifi Wifi.Begin()
(Read 9945 times)
Dec 14, 2019, 10:09 am
We are implementing wifi based NTP for reading time from ntp server.
Noticed that Wifi.Begin(); is blocking, doesn't return if Wifi doesn't exists or connect.
Is there a Non blocking call, need to return with time out if no wifi connection.
Appreciate support on the subject.
Re: Wifi Wifi.Begin()
Dec 14, 2019, 11:52 am
Please post your full sketch.
If possible, you should always post code directly in the forum thread as text using code tags:
Do an Auto Format (
Tools > Auto Format
in the Arduino IDE or Ctrl + B in the Arduino Web Editor) on your code. This will make it easier for you to spot bugs and make it easier for us to read.
In the Arduino IDE or Arduino Web Editor, click on the window that contains your sketch code.
Press "Ctrl + A". This will select all the text.
Press "Ctrl + C". This will copy the selected text to the clipboard.
In a forum reply here, click the "Reply" button.
click on the reply field.
button on the forum toolbar. This will add the forum's code tags markup to your reply.
Press "Ctrl + V". This will
the sketch between the code tags.
Move the cursor outside of the code tags before you add any additional text to your reply.
Repeat the above process if your sketch has multiple tabs.
This will make it easy for anyone to look at it, which will increase the likelihood of you getting help.
If the sketch is longer than the 9000 characters maximum allowed by the forum, then it's OK to add it as an attachment. After clicking the "Reply" button, you will see an "Attachments and other settings" link.