Hi,
I am trying to send raw bytes of data on the UART to operate a serial
7-segment LED screen connected to the remote nodes(as the screen accepts
commands in terms of hex bytes to display the data). For this I am using
the UartStream interface as follows:
---------------In the application module's
implementation-------------------------------
call UartStream.send(buf, sizeof(buf));
event void UartStream.sendDone(uint8_t* buffer, uint16_t len, error_t
ok) {
if (ok == SUCCESS) {
call Leds.led1Toggle();
}
}
-------------------------------------------and the wiring looks like as
follows-------------
components PlatformSerialC;
AntiTheftC.UartStream -> PlatformSerialC;
------------------------------------------------------------------------
--------------------------------
But I am getting errors as follows:
In component `AntiTheftC':
AntiTheftC.nc:236: `UartStream.sendDone': async mismatch with
declaration
/opt/tinyos-2.x/tos/interfaces/UartStream.nc:57: previous declaration of
`Ua
rtStream.sendDone'
AntiTheftC.nc:54: `UartStream.receivedByte' not implemented
AntiTheftC.nc:54: `UartStream.receiveDone' not implemented
make: *** [exe0] Error 1
Can anyone suggest what is the problem or how can it be fixed? What I
understand from UartStream interface is either we can send or receive
multiple bytes on UART, for sending don't we just need to send and
senddone OR do we also need to use other commands in this interface
JUST FOR SENDING, I do not want to receive back anything.
Is there any other interface to do this task ???
Cheers,
Varun Jain
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help