netSetAPParam (Function) |
Top Previous Next |
Sets the parameters for a wireless network with the AP network interface. It has the same effect as setting the parameters via Device: Network: Network Settings.
The AP network interface must be closed and opened again before the changes can take effect if already opened (see also netClose / netOpen). The format of an IP address is the same as returned by the sockGetLocalIP function.
Input: SSID : STRING The SSID of the wireless network.
Country : STRING The country code where the device operates. The ISO 3166-1 standard is used for the country code, as f.ex. 'DK' for Denmark.
Hidden : BOOL Control whether the SSID will be broadcast.
Chnl : SINT (1..14) The channel to use. Please note: •That not all 14 channels is available in every country. Channel 1 to 11 is always available, but it should be checked if channel 12, 13 or 14 is available. •That if both the WLAN and AP network interfaces are open, then the channel can be changed when a connection to a WLAN network is established.
Sec_config : PTR The security configuration for the wireless network (passwords must be of at least 8 characters length). The security is configured by way of a pointer to a struct block which contains the parameters.
Address : DINT The IP address of the device.
Subnet : DINT The Subnet mask of the device.
Returns: INT
Declaration: FUNCTION netSetAPParam : INT; Country : MANDATORY STRING;
Example: INCLUDE rtcu.inc |