[Tinyos-devel] ENOMEM in TinyError.h
Philip Levis
pal at cs.stanford.edu
Tue May 13 11:31:21 PDT 2008
On May 8, 2008, at 8:45 AM, David Moss wrote:
>
>
> Undocumented error codes are defined in custom applications. Can we
> suggest
> end users define error codes above 128 to avoid conflict with an
> evolving
> TinyOS baseline?
Is the issue that components want to use the current error_t values
but add new ones? One could always define a new app_error_t. Or is it
that you want to use standard interfaces?
One approach is to define some content-free names for specific error
codes, such as ECUSTOM1, ECUSTOM2, ECUSTOM3. Another is to define an
ELAST, which is the last value+1, and allow systems to extend the set
with unique() + ELAST. I think error codes are a slightly different
beast than AM IDs, in that there aren't the same kind of
interoperability issues.
Phil
More information about the Tinyos-devel
mailing list