0

The sketch example from page "Wifi.beginAP()" causes compiler error because the return values are not defined for -WL_AP_LISTENING or -WL_CONNECT_FAILED.

Board: Arduino MKR1000 WiFi

Compiler: Arduino IDE

Library: Github WiFi101 v0.9.1

Missing: definition of "WL_AP_LISTENING" and "WL_CONNECT_FAILED"

ERROR.... beginAP.ino: In function 'void setup()':

beginAP:55: error: 'WL_AP_LISTENING' was not declared in this scope

if (status != WL_AP_LISTENING) {
 ^

Arduino WiFi101-MKS1000 examples\beginAP\beginAP.ino: In function 'void loop()':

beginAP:78: error: 'WL_AP_CONNECTED' was not declared in this scope

 if (status == WL_AP_CONNECTED) {
 ^

exit status 1 'WL_AP_LISTENING' was not declared in this scope

asked Sep 6, 2016 at 13:23

1 Answer 1

1

It is AP_SimpleWebServer.ino at Github Wifi101 release 0.9.1 examples. It builds ok by using the old definitions for .beginAP return values. Problem is Arduino .beginAP page has example that relies on the LATEST Github WiFi101 ("0.9.1++" not released yet). Also example AP_SimpleWebServer is missing from Arduino Wifi101 page.

answered Sep 6, 2016 at 15:58

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.