WiSnap User Manual 4.41 05282015-ML
Page 17
set ip netmask
<value>
-
sets the network mask. If DHCP is turned on, the net mask is assign and overwritten during
association with the access point.
set ip protocol
<value>
-
sets the IP protocol. Value is a bit mapped setting. To connect to the WiSnap module over TCP/IP
such as Telnet the device must have the use the TCP Server protocol / bit 2 set. To accept both TCP and UDP use value = 3 (bit
1 and bit 2 set).
Bit Position
Protocol
0
UDP
1
TCP Server & Client (Default)
2
Secure (only receive packets when IP address matches the store
host IP)
3
TCP Client only
4
HTTP client mode
set ip remote
<value>
-
sets the remote host port number for outgoing connections.
set ip tcp-mode
<mask>
-
controls the TCP connect timers, DNS preferences, and remote configuration options.
<mask>
is a
hex number referring to a bit-mapped register as shown below.
Bit Position
Protocol
0
Shorten the TCP connect timer (use with bit 1)
1
Shorten the TCP connect timer (use with bit 0)
2
Forces the module to use DNS first to resolve the IP address,
even if the host IP is set
3
Reserved
4
Disables remote configuration security purposes
Example:
-
set ip tcp-mode 0x4 –
Forces the module to use DNS
-
set ip tcp-mode 0x10 –
Disables remote configuration
5.7 OPTIONAL Parameters
set opt jointmr
<msecs>
-
join timer is the time in milliseconds (default=1000) the join function will wait for an access point to
complete the association process. This timer is also the timeout for the WPA handshaking process.
set opt sensor
<mask>
-
deprecated in firmware versions 2.23 and later. Use
set q sensor
. Bitmask value that determines
which sensor pins to sample when sending data using the UDP broadcast packet and the HTTP auto sample function.
set q sensor
<mask>
-
specifies which sensor pins to sample when sending data using the UDP broadcast packet or the HTTP
auto sample function, where
<mask>
is a bit-mapped register.
Example:
set q sensor 0xff
.
NOTE:
In versions of firmware prior to 2.23, this command is named
set option sensor
set opt replace
<char>
-
replacement character for spaces. The replacement character is used when entering SSID and pass
phrases that include space. This is used by the WiSnap command parser only. Each occurrence of the replacement character
is changed into a space. The default is “$” (0x24).
set opt format
<mask>
-
settings for HTTP client/web server value is a bitmapped register. See Section 13, web server modes.