Looks like you forgot the final closing curly brace (}).

Cheers,
Urs


On 10/21/2010 08:25 AM, Nida Sahar Syed wrote:
> Hi
> I am using tinyos to save data(which is received from another node) on
> EEPROM of mote. when I am compiling code there is an error
> Parse error at the end of input.
> My code is given below:
> includes SenseMessage; // header file for message struc
>
>
> module SenseReceiveM {
> provides interface StdControl;
>
> uses {
> interface Leds;
> interface ReceiveMsg;
> interface LoggerWrite;
>
> }
> }
> implementation {
> uint8_t currentBuffer;
> char* ptr;
>
>
> command result_t StdControl.init() {
> call Leds.init();
> return SUCCESS;
> }
> command result_t StdControl.start() {
>
> call Leds.redOff();
> call Leds.greenOff();
> call Leds.yellowOff();
> return SUCCESS;
> }
>
> TOS_MsgPtr buffer;
> event TOS_MsgPtr ReceiveMsg.receive(TOS_MsgPtr m)
> {
> TOS_MsgPtr tmp;
> tmp = buffer;
> buffer = m;
>
>
> atomic {
> ptr = (char*)m;
> currentBuffer ^= 0x01;
> }
>
> call LoggerWrite.append(ptr);
> return tmp;
> }
> command result_t StdControl.stop() {
> return SUCCESS;
> }
> event result_t LoggerWrite.writeDone( result_t status ) {
> if (status) call Leds.yellowOn();
> return SUCCESS;
> }
> What is mistake in code?
> Thanks in advance.
> Nida
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to