Xbee wifi S6B tcp socket auto connect to TCP socket server

Hi,

To keep my question short, I have 2 questions:

  1. I have a tcp socket server which listens for connections. I have setup my xbee (using XCTU) to join the network but it doesn’t connect to my server unless I manually send some data from terminal to the server. Is there any setting to let it connect to my server at start up or something?

  2. Is there a way to program (i.e. python, c, etc and how to drop the script to it, run it…) the xbee so that I can control the digital output and input pins from my server?

No, the radio will not make a connection to the server unless it has data on the UART in which to send. You can however, have the server make a connection to the radio if you so desire. or you can simply provide the radio data in which it will send.

To control the DIO lines, use the radios API interface and related commands. Specifically the remote AT commands function.