User`s guide
RN-WIFLYCR-UG
www.rovingnetworks.com Version 1.2r 4/30/13 page 11
2.3.3 set adhoc reboot <value>
This command sets the reboot timer to reboot the module periodically every <value>
seconds.
Default: 0
Example: set adhoc reboot 600 // Sets the reboot timer to 600 seconds
2.3.4 set broadcast address <address>
This command sets the primary address to which the UDP hello/heartbeat message is
sent, where <address> is an IP address in the form <value>.<value>.<value>.<value>
with <value> being a number between 0 and 255.
Default: 255.255.255.255
Example: set broadcast address 192.168.1.50
// Sets the broadcast address to
// 192.168.1.50
2.3.5 set broadcast backup <address>
This command sets the secondary address to which the UDP hello/heartbeat message
is sent, where <address> is an IP address in the form
<value>.<value>.<value>.<value> with <value> being a number between 0 and 255.
The secondary broadcast is also a UDP packet sent after the primary broadcast and is
of 120 bytes. The secondary broadcast contains the primary broadcast (110 bytes) plus
the module’s MAC address (6 bytes) and IP address (4 bytes), for a total of 120 bytes.
Default: 0.0.0.0
Example: set broadcast backup 192.168.1.5
// Sets the broadcast address to
// 192.168.1.5
2.3.6 set broadcast interval <mask>
This command sets the interval at which the hello/heartbeat UDP message is sent and
is specified in seconds. The value is a mask that is ANDed with a free running seconds
counter; if the result is all 0s, a packet is sent. For example:
• If the interval is 0x1, the module sends one packet every 2 seconds.
• If the interval is 0x2. The module sends two packets every 4 seconds.
• If the interval is 0x3, the module sends one packet every 4 seconds.
• If the interval is 0x6, the module sends two packets every 8 seconds.
• If the interval is 0x7, the module sends one packet every 8 seconds.
Note 1: <value> must be greater than 60 secs. To enable the automatic reboot
feature, the reboot timer must be used in conjunction with the debug reg-
ister (set system debug 0x80).
2: This command applies only to firmware versions supporting adhoc net-
working mode. WiFly firmware versions 4.0 and higher do not support
adhoc networking mode.