[Tinyos-help] default event problem - not implemented

Jack Travis jacktravisthefirst at gmail.com
Fri Aug 1 10:35:36 PDT 2008


this should work right?

On Thu, Jul 31, 2008 at 3:12 PM, Jack Travis
<jacktravisthefirst at gmail.com> wrote:
> Hi
>
> I have a problem defining the default events for my interface.
>
> The module implementation contains:
> ****************
> signal Interface.Receive(msg, payload, len);
> ...
> default async event message_t* Interface.Receive(message_t* msg, void*
> payload, uint8_t len) {
>        return msg;
> }
> ****************
>
> And the interface contains:
> ****************
> async event message_t* Receive(message_t* msg, void* payload, uint8_t len);
> ****************
>
> But When I wire an application to this Interface I always get the
> following error:
> ****************
> TestC.nc:32: `Interface.Receive' not implemented
> ****************
>
> I cant see why the default does not work.
> Thanks
> J
>


More information about the Tinyos-help mailing list