0

I don't understand where the access point's IP comes from. Sketch uses WiFi.beginAP( ssid ) ..to start the AP. Then, printWifiStatus() gets the access point's IP with: IPAddress ip = WiFi.localIP();

How does .beginAP() create the IP? What does it use for a mask?

I'm creating network service on a MKR1000, and want to use .beginAP() to make it an access point, so I don't need a "middle man" (router). Going to have mobile device (iPhone) connect directly to Arduino MKR1000.

Doug Null
  • 7,989
  • 15
  • 69
  • 148

1 Answers1

1

Exactly the same question as on arduino.stackexchange.com.

In short: If you look into that GitHub source code, you can see startAP function and mainly rows with strM2MAPConfig.au8DHCPServerIP.

KIIV
  • 3,534
  • 2
  • 18
  • 23