[Tinyos-help] Can classes be made in tinyos1.x
R. Steve McKown
rsmckown at yahoo.com
Tue Jul 25 07:33:20 PDT 2006
On Tuesday 25 July 2006 12:17 am, s bash wrote:
> hi to all
> i want to inquire that can we make classes and their instances in
> Tinyos1.x? waiting for reply
TinyOS is built on nesC, which is an extension to the C language. It is not
object oriented and has no concept of classes or objects per se. One can
define C structures in TinyOS, but the programming paradigm of creating
"pseudo objects" in C structures won't work so well in TinyOS.
Instead, you should construct your TinyOS programs using its core features:
modules and configurations. Please read the excellent
http://csl.stanford.edu/~pal/pubs/tinyos-programming.pdf for more
information.
Steve
More information about the Tinyos-help
mailing list