RN 171 Wifly TCP Question

Hello,

I am trying to use the RN 171 Wifly module to send sensor data to my computer where it can be processed and graphed. I currently have it set up to automatically broadcast the sensor data using the UDP broadcast, but at the rate of 1 packet every 2 seconds (which the user manual says is the fastest it will go) it is far too slow for my uses. According to the user manual,I could use the TCP flush timer to send data as often as once every 10 ms. would like to simply write a C program that would connect to the device over TCP/IP and collect the data that way but I am unsure exactly how it would work. The only thing I could find in the user manual is related to the packet forwarding, but that seems to be more for signals coming from a connected microcontroller via UART.

Can anyone briefly explain how it would be best to go about doing this? I figured I would just use sockets to connect to the device and then read data from that, but will the device automatically send the sensor data or will I have to send it “show q ” first? I currently have it in Ad Hoc mode as well, if that helps, but I can make it work either way.

If anyone has any suggestions I would greatly appreciate it, thanks in advance.