TCP Server
tcp.server.auto_start
Abbreviation
tc s a
Access
get/set
Description
Enable/disable TCP server auto-start on bootup.
Arguments
<0/off/false/1/on/true>
Default
0
Supported Platforms
- AMW007
- AMW037
Get example
> get tc s a
R000003
0
Set example
> set tc s a true
R000008
Set OK
tcp.server.connected_gpio
Abbreviation
tc s c
Access
get/set
Description
The GPIO used to indicate whether a client is connected to the TCP server.
See also system.oob.gpio .
Arguments
<[GPIO#]/[-1]>
Default
-1
Supported Platforms
- AMW007
- AMW037
Get example
> get tc s c
R000004
-1
Set example
> set tc s c 12
R000008
Set OK
tcp.server.data_gpio
Abbreviation
tc s d
Access
get/set
Description
The GPIO used to indicate whether a connected client has data available to read.
Note
: Disable by setting to -1.
See also system.oob.gpio .
Arguments
<GPIO#>
Default
-1
Supported Platforms
- AMW007
- AMW037
Get example
> get tc s d
R000004
-1
Set example
> set tc s d 13
R000008
Set OK
tcp.server.idle_timeout
Abbreviation
tc s t
Access
get/set
Description
Maximum client idle time in seconds before the client is automatically disconnected.
Setting
tcp.server.idle_timeout
to
0
turns off timeout completely: TCP server does not disconnect idle clients.
Arguments
<seconds>
Default
60
Supported Platforms
- AMW007
- AMW037
Get example
> get tc s t
R000004
60
Set example
> set tc s t 30
R000008
Set OK
tcp.server.port
Abbreviation
tc s p
Access
get/set
Description
TCP server port to listen on
Arguments
<port>
Default
3000
Supported Platforms
- AMW007
- AMW037
Get example
> get tc s p
R000006
3000
Set example
> set tc s p 3001
R000008
Set OK