Download WiFly Command Reference, Advanced Features and
Transcript
WiFly Command Reference, Advanced Features & Applications User’s Guide 2.3.46 set opt deviceid <string> This command sets the configurable device ID, where <string> is up to 32 bytes long. You can use <string> for serial numbers, a product name, or to show other device information. The module sends the device ID as part of the UDP broadcast hello packet. You can view the device ID’s current value with the get option or show deviceid commands. Default: WiFly-GSX Example: set opt deviceid my_wifly 2.3.47 // Sets the device ID to my_wifly set opt password <string> This command sets the TCP connection password, where <string> is up to 32 bytes long. This setting provides minimal authentication by requiring any remote device that connects to the module to send and match the challenge <string>. When a connection is opened, the module sends the string PASS? to the remote host. The remote host must reply with the exact characters that match the stored password in one TCP packet; otherwise, the module closes the connection. To disable the password feature, use 0 (the default). Default: “” (no password required) Example: set opt password my_password // Sets the TCP connection password to // my_password 2.3.48 set opt average <value> This command sets the number of RSSI samples used to calculate the running RSSI average for the set opt signal command. Default: 5 Example: set opt average 10 2.3.49 // Sets the average to 10 RSSI readings set opt signal <value> This command allows you to configure the threshold level for the RSSI value in infrastructure mode. If the signal strength (RSSI) falls below <value> dB, the module declares AP is lost and deauthenticates itself from the network. Thereafter, the module associates with the network based on the join policy. This command is useful for applications in which the Wi-Fi module is in a mobile environment and frequently enters and leaves the AP’s range. The recommended range for <value> is between 50 and 80. As <value> is lowered, the module more frequently deauthenticates itself from the AP. Note: This command applies in infrastructure mode only. It is not applicable in soft AP mode. You must enable the link monitor for this feature to work. Default: 0 Example: set opt signal 70 DS50002230A-page 24 // Sets the RSSI threshold to -70 dBm. If // the RSSI average falls below -70 dBm, // the module deauthenticates itself. 2014 Microchip Technology Inc.