Datasheet
Flyport Wi-Fi and Ethernet Programmer's guide framework 2.3 (rev 1.0) www.openpicus.com
WFScan() is a utility function to start scanning for all the available Wi-Fi networks.
Each of the Wi-Fi networks found will be indexed with an int number.
Note: this function cannot be called inside “WF_Event.c”!
WFNetworkFound() returns an int number of how many networks are found. At startup it returns 0.
This function is useful to know the maximum number of networks found, 0 for no Wi-Fi networks
found yet.
WFScanList(int n) reads the parameters of the discovered network number n and returns a
tWFNetwork variable, with all the parameters read.
Below is an example of the use of this function:
tWFNetwork NetData;
int indexNetwork = 1;
NetData = WFScanList( indexNetwork );
UARTWrite(1, NetData.ssid);
NOTE: for more information on using the Network Scanner Functions, please refer to “APP –
NetworkScanner” in the download section of www.openpicus.com
In case the application uses DHCP Client (so it is enabled inside the Wizard, and also in network
parameters), the IP address of the Flyport module may change. To know if the DHCP of the
router/access point has assigned a IP address to the Flyport, it can be monitored the variable
DHCPAssigned.
The BOOL DHCPAssigned value is:
• FALSE → the IP is not assigned
• TRUE → the IP is assigned
38










