user24102: 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

user24102: 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.

24102: <p>The sketch example from page <a href="https://www.arduino.cc/en/Reference/WiFi101BeginAP" rel="nofollow">"Wifi.beginAP()"</a> causes compiler error because the return values are not defined for -WL_AP_LISTENING or -WL_CONNECT_FAILED.</p>

<p>Board: Arduino MKR1000 WiFi</p>

<p>Compiler:  Arduino IDE</p>

<p>Library: Github WiFi101 v0.9.1</p>

<p>Missing:  definition of "WL_AP_LISTENING" and "WL_CONNECT_FAILED"</p>

<p>ERROR....
beginAP.ino: In function 'void setup()':</p>

<p>beginAP:55: error: 'WL_AP_LISTENING' was not declared in this scope</p>

<pre><code>if (status != WL_AP_LISTENING) {

              ^
</code></pre>

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

<p>beginAP:78: error: 'WL_AP_CONNECTED' was not declared in this scope</p>

<pre><code>  if (status == WL_AP_CONNECTED) {

                ^
</code></pre>

<p>exit status 1
'WL_AP_LISTENING' was not declared in this scope</p>
 24102: <p>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.</p>
