you are using the RN 171-EK module so are probably limited to the functionality of that module which just sends the basic UDP or TCP broadcasts at regular intervals
if you attach an RN 171 to a microcontroller you can transmit what data you wish, e.g. in one of my earlier posts I was transmitting from an Explorer 16 with a RN171 picTailPlus daughter board
Code:
TCP server on IP address 192.168.1.65 port 20000
TCP server starting: IP address PC/192.168.1.65 port 20000
Client connect from IP address /192.168.1.64 port 57303
*HELLO*transmitting ADC values
adc = 52
adc = 52
adc = 52
adc = 52
generated with the code
Code:
char text[100]={0};
sprintf(text, "adc = %d\n", ADCread());
printf("transmitting %s", text);
UART1PrintString(text); // send to RN171
I can change the sprintf() statement to generate any string required which is then transmitted to the RN171 every 10 seconds (using a timer)