Hello,
I still cannot get it! In the beginning I had included DemoSensorC component
wired with  Read interface and everything worked fine. In order to use the
light sensor instead I replaced (at MineAppC.nc):

components new DemoSensorC() as Sensor;
with:
components new PhotoC();

and also replaced:

App.Read -> Sensor;
with:
App.Read -> PhotoC;

At MineC.nc I have:

uses interface Read<uint16_t>;

I execute "make iris" and I get:

In component `ThisAppC':
ThisAppC.nc:18: component PhotoC not found
ThisAppC.nc:18: component `PhotoC' is not generic
ThisAppC.nc:29: no match
make: *** [exe0] Error 1

The tinyos-2.1.0/tos/sensorboards/mts300/PhotoC.nc looks different than the
.nc files in tos/interfaces directory and it confuses me a lot, but at least
it describes PhotoC as generic:

"generic configuration PhotoC()"

I am very confused. What do I miss? Must I add something in Makefile too?
Any help would be appreciated!
Thank in advance,
Georgia







2011/7/11 Bíró András <[email protected]>

> 2011/7/11 Geo Gkolfin <[email protected]>:
> > So I will use it as described in tinyos-2.1.0/tos/sensorboards, right?
>
> I don't have this file, so I don't know.
> But check the /apps/test library, it's a good place to start, if
> there's no documentation.
> eg. mts300: /apps/tests/mts300/PhotoTemp/
>
> Andris
> Q
> > Thank you very much!!!
> > Georgia
> >
> > 2011/7/11 Bíró András <[email protected]>
> >>
> >> Then it depends on the sensorboard: If you're using mts3xx or mts1xx,
> >> it's called PhotoC. On mts400 it's called Taos2550C.
> >>
> >> Andris
> >>
> >> On Mon, Jul 11, 2011 at 8:14 PM, Geo Gkolfin <[email protected]>
> wrote:
> >> > I am using iris motes...
> >> > _______________________________________________
> >> > Tinyos-help mailing list
> >> > [email protected]
> >> >
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >> >
> >
> >
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to