Wifly can't send data

Hi,

i configured my wifly correctly and it connects successfully ad-hoc with my Mac over UDP protocol and i am able to send strings over wifi.

Now…how can i send my sensors data from Arduino + wifly to my Mac?

What’s the function to send strings from wifly?

i am getting crazy!!

Thanks

This is described in the user manual.

can you be so kind as to tell me the function

i read the official manual so many times! where? what page?

Section 11.4 of the wifly user manual describes how to broadcast UDP messages containing sensor data.

Sections 13.1, 13.4 & 13.5 describe how to send TCP or HTML messages containing sensor data to a web server.

I use SpiSerial.read() for read but for send a package to an host what function do I need to use?

How can I set programmatically from a sketch remote host ip?

Your sketch would have to set up the wifly as described in the wifly user manual and then the wifly will transmit data messages automatically to a remote host.

It is much easier to use a terminal emulator like TeraTerm to accomplish this (as described in the manual), rather than write a program to reproduce what you would type into the terminal program. Alternatively, you can telnet into the wifly (once it is connected to an access point) and set it up to send data messages. You only have to do the setup once, so it really doesn’t make much sense to write a program to do the setup.

Solved! Thanks :slight_smile: