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.
12 years, 6 months ago.
Problem with Wireless
I'm using a LPC1768 and trying to make a wireless connection with a PC.
This is my code:
#include "mbed.h"
Serial pc(USBTX, USBRX); // tx, rx
Serial wixel(p13,p14);
char a,b;
int main()
{
while (1) {
pc.putc(wixel.getc());
wixel.putc(pc.getc());
}
}
I was expecting a bidirectional connection(both send and receive in the same time) , but what happen is that the pc or the wixel receives 8 or 10 characters and waits for the other to receive again.
Thanks !