Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 9 months ago.
Transmitting udp from wifly
This is probably a very basic question but sometimes the simplest things are elusive.
#include "mbed.h" Serial device(p9, p10); // tx, rx int main() { while (1) { device.baud(9600); device.printf("2"); } }
If I connect p9 to the wifly pin 2 UART_TX will my wifly transmit the character '2' . Assuming of course I have correct ip address and port. Does wifly transmit everything presented to its UART_TX pin ?
1 Answer
11 years, 2 months ago.
This may be too late to help Gregory, but for others that happen upon this -
There is a cookbook section for Wifly, which includes several sample programs. In my experience, the deepest learning took place while trying those samples, and reading the user manual for the Wifly module - accessible from the More Details section of the cookbook.
For a very brief answer - the Wifly module has two basic modes - command and data. In command mode, you can interact with the Wifly module itself, to establish a connection to an access point (for example). In data mode, what you sent to the module is passed through the wi-fi link to whatever it is connected to.