---------- Forwarded message ----------
From: chouaieb jalloul <[email protected]>
Date: Mon, Mar 9, 2009 at 4:03 PM
Subject: Re: [Tinyos-help] helloworld with nesC
To: Faisal Aslam <[email protected]>
thank you for your response, for now I have a problem to create the
application on nesc.
In fact, I want to create two components: Helloworld component that provides
a hello interface and its implementation. and a component helloclient that
uses helloworld component to print the message "hello world".
this the source code of HelloworldM.nc:
///////////
#include <stdio.h>
#include <stdlib.h>
module HelloworldM {
provides {
interface Hello;
}
}
implementation {
command void Hello.sayhello() {
printf("hello world!");
}
}
///////////
the hello interface: Hello.nc:
///////////
interface Hello{
command void sayhello();
}
///////////
my problem is in creating the helloclient component, how should it look
like? I don't know how to use main method in it to create an executable.
I am basing on my experience on Java and I don't know if it's possible or
not with nesC.
best regards,
chouaieb
On Mon, Mar 9, 2009 at 3:38 PM, Faisal Aslam <
[email protected]> wrote:
> It is possible. You can use ncc compiler directly to compile NesC code.
> More information is http://www.tinyos.net/tinyos-1.x/doc/nesc/ncc.html
>
> best regards,
> Faisal
>
>
> chouaieb jalloul wrote:
>
>> Hello,
>> I started to learn about nesC since a week. To become more familiar with
>> it, I tried to build a simple helloworld application with it using
>> components and interfaces. I would like to run a program independently from
>> TinyOS but till now I couldn't build this example.
>> I'd like to know if it's possible to do that and how.
>> best regards,
>>
>> Chouaieb
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
--
Jalloul Chouaieb
telecommunication engineer
tel:(+33) 6 47 86 79 27 / (+216) 97 801 815
--
Jalloul Chouaieb
telecommunication engineer
tel:(+33) 6 47 86 79 27 / (+216) 97 801 815
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help