Start Back Next End
  
ZBasic System Library
ZBasic Microcontrollers
47
Wifi.GetIP
Type
Function returning UnsignedLong
Invocation
Wifi.GetIP(selector)
Parameter
Method
Type
Description
selector
ByVal
anyIntegral
This parameter selects the element of interest (see
discussion).
Discussion
The ESP8266 WiFi module contains two network interfaces, one for operating in "station" mode and one
for operating in "access point" mode.  This function allows retrieval of network parameters for each of the
interfaces using several different selector values as shown in the table below.
IP Selector Values
Value
Meaning
0
Return the station IP address.
1
Return the station gateway IP address.
2
Return the station network address mask.
4
Return the AccessPoint IP address.
5
Return the AccessPoint gateway IP address.
6
Return the AccessPoint network address mask.
Previous page Top Next page