[Tinyos-help] some corrections for tinyos 2.0 tutorials

Ankur Kamthe ankur.kamthe at gmail.com
Fri Jan 5 23:43:27 PST 2007


Hi,

I noticed some typos/omissions in the tinyOS 2.0 tutorials. I am appending
them at the end of the email. Thanks for the great tutorials.

Please excuse me if I am mailing on the wrong list but there were no contact
email addresses in the tutorials

regards,
Ankur

In Lesson 3: http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson3.html

*******************************************************************************
1. message_t packet; should be message_t pkt; in the following section
    (gives 'pkt' undeclared in Timer0.fired function)

implementation {
  bool busy = FALSE;
  message_t packet;
  ...
}

******************************************************************************
*****************************************************************************
2. BlinkToRadioMsg* btrmsg  should be BlinkToRadioMsg* btrpkt in the
   following section (gives 'btrpkt' undeclared error):

event message_t* Receive.receive(message_t* msg, void* payload, uint8_t len)
{
  if (len == sizeof(BlinkToRadioMsg)) {
    BlinkToRadioMsg* btrmsg = (BlinkToRadioMsg*)payload;
    call Leds.set(btrpkt->counter);
  }
  return msg;
}

******************************************************************************
******************************************************************************
3. Need to add the following function for the program to compile
   (gives "AMControl.stopDone' not implemented" error).

  event void AMControl.stopDone(error_t err) {
  }

******************************************************************************
******************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070105/e715b6bf/attachment-0001.html


More information about the Tinyos-help mailing list