Datasheet
Flyport Wi-Fi and Ethernet Programmer's guide framework 2.3 (rev 1.0) www.openpicus.com
QUESTION: How can I know what kind of connection profile I have used?
The WFConnection variable stores the Wi-Fi profile number used to connect Flyport to the Wi-Fi
network. The “if(WFConnection == WF_CUSTOM)” can be used to find out if a Wi-Fi custom profile
has been used.
Customizing Network Parameters at Runtime
The Framework supports several user functions which may be used to Customize the
ETH_CUSTOM/WF_CUSTOM profile. Some are used to set parameters, others for saving, loading and
checking profiles, one is for Flyport Wi-Fi only.
To Set a parameter of ETH/WF_CUSTOM → NETSetParam(int paramtoset,
char * paramstring );
Parameters:
paramtoset: the parameter of profile to change.
– MY_IP_ADDR
– PRIMARY_DNS
– SECONDARY_DNS
– MY_GATEWAY
– SUBNET_MASK
– NETBIOS_NAME
– DHCP_ENABLE (ENABLED or DISABLED)
– SSID_NAME (Wi-Fi only)
– NETWORK_TYPE (ADHOC or INFRASTRUCTURE) (Wi-Fi only)
paramstring: the string value of parameter.
Flyport Wi-Fi
To Set the Security Parameters of WF_CUSTOM → WFSetSecurity(BYTE mode,
char* keypass,
BYTE keylen,
BYTE keyind);
Parameters:
mode: the security mode. Following are valid parameters:
– WF_SECURITY_OPEN : no security
– WF_SECURITY_WEP_40: WEP security, with 40 bit key
– WF_SECURITY_WEP_104: WEP security , with 104 bit key
– WF_SECURITY_WPA_WITH_KEY: WPA-PSK personal security, the user specifies the hex key
– WF_SECURITY_WPA_WITH_PASS_PHRASE: WPA-PSK personal security, the user specifies
only the passphrase
– WF_SECURITY_WPA2_WITH_KEY: WAP2-PSK personal security, the user specifies the hex
key
– WF_SECURITY_WPA2_WITH_PASS_PHRASE: WPA2-PSK personal security, the user specifies
only the passphrase
– WF_SECURITY_WPA_AUTO_WITH_KEY: WPA-PSK personal or WPA2-PSK personal (the
Flyport will auto select the mode) with hex key
–
WF_SECURITY_WPA_AUTO_WITH_PASS_PHRASE: WPA-PSK personal or WPA2-PSK
personal (autoselect) with pass phrase
35










