0

Response needed from TCP Server

madub 2 months ago in Devices / Basic updated 2 months ago 2

Hello,

I need to use the TCP Server connexion of ComfortClick's Basic Driver in order to receive data sent by a sensor device (VegeHub from Vegetronix).
The TCP server is receiving the data from my Vegehub device, and I can parse the data well.

The problem is that ComfortClick does not send any response to the device and does not close the connection despite closing being requested by the device.
How can I have ComfortClick send a 200 code OK response to an incoming message sent to ComfortClick's TCP Server ?
How can I have ComfortClick close the connexion once received ?

Thank you

Im not sure if this will work or not. 
Add a command to the TCP server

Image 5083

Text data: HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 0\r\n\r\n

New line: \r\n
Send trigger: Set a trigger for sending the response when data is received from the VegeHub sensor.

Thank you for this proposition.

I have tried : I still get a message received in the TCP Server object, but I could not get any response from the ComfortClick server.

For your information, when I try the same to the Vegetronix server, I get a response 200 OK from their server.

This is not really clear to me what the Command do in case of a TCP server connection. And the parameter Sent of the object never switches to true.