Hi all,

Sorry for asking such a basic question, but I can't find a reference
application code for UART usage in the code base.

Say I want to send 5 characters to a device which would then respond with 9
characters. Is the proper sequence:

Stdcontrol.start
Uartstream.send(sendbuf, 5);
Uartstream.receive(receivebuf, 9);

Stdcontrol.stop <--inside Uartstream.receivedone

or

Stdcontrol.start
Uartstream.receive(receivebuf, 9);
Uartstream.send(sendbuf, 5);

Stdcontrol.stop <--inside Uartstream.receivedone

I've tried both and my app still isn't working, so I know it's not the
sequence(that's causing the failure). Still, I would like to know which
version to pursue further.

Thanks
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to