Can't figure out TCP binding for the life of me. Help!

,

Hi,

I also had huge issues getting TCP binding to work initially. Here is my config that works well.
################################# TCP - UDP Binding ###################################

all parameters can be applied to both the TCP and UDP binding #unless

specified otherwise

Port to listen for incoming connections

udp:port=25002

Cron-like string to reconnect remote ends, e.g for unstable #connection or remote ends

#udp:reconnectron=‘0 0 0 * * ?’

Interval between reconnection attempts when recovering from a communication error,

in seconds

#udp:retryinterval=3

Queue data whilst recovering from a connection problem (TCP #only)

udp:queue=true

Maximum buffer size whilst reading incoming data

udp:buffersize=20

Share connections within the Item binding configurations

udp:itemsharedconnections=true

Share connections between Item binding configurations

udp:bindingsharedconnections=false

Share connections between inbound and outbound connections

udp:directionssharedconnections=true

Allow masks in ip:port addressing, e.g. 192.168.0.1:* etc

udp:addressmask=true

Pre-amble that will be put in front of data being sent

#udp:preamble=’’

Post-amble that will be appended to data being sent

#//udp:postamble=’\r\n’

Perform all write/read (send/receive) operations in a blocking mode, e.g. the binding

will wait for a reply from the remote end after data has been sent

udp:blocking=false

timeout, in milliseconds, to wait for a reply when initiating a blocking write/read

operation

udp:timeout=1000

Update the status of Items using the response received from the remote end (if the

remote end sends replies to commands)

udp:updatewithresponse=false

Timeout - or ‘refresh interval’, in milliseconds, of the worker thread

udp:refreshinterval=1500

Timeout, in milliseconds, to wait when “Selecting” IO channels ready for communication

udp:selecttimeout=1000

Used character set

#tcp:charset=ASCII

And here is a switch example that works.

Switch Study_Lights “Study Lights” (Study, Lights_Interior) {udp=">[ON:10.0.2.90:8888:‘MAP(Study_Light.map)’],>[OFF:10.0.2.90:8888:‘MAP(Study_Light.map)’]"}

PS sorry for the formatting of the post. I can never work out how to do it properly!!!

1 Like