-
Notifications
You must be signed in to change notification settings - Fork 0
/
SixthSensorPart3AppC.nc
31 lines (25 loc) · 1004 Bytes
/
SixthSensorPart3AppC.nc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <Timer.h>
#include "SixthSensorPart3.h" //including library
configuration SixthSensorPart3AppC { //Configuration of App file
}
implementation {
components MainC; //Defining components to be used by motes
components LedsC;
components SounderC;
components new DemoSensorC() as Sensor;
components SixthSensorPart3 as App;
components new AMSenderC(AM_SixthSensorPart3);
components new AMReceiverC(AM_SixthSensorPart3);
components new TimerMilliC() as Timer0;
components ActiveMessageC;
App.Boot -> MainC; //Making the wiring connections
App.Leds -> LedsC;
App.Mts300Sounder -> SounderC;
App.AMControl -> ActiveMessageC;
App.Packet -> AMSenderC;
App.Read -> Sensor;
App.AMPacket -> AMSenderC;
App.Timer0 -> Timer0;
App.AMSend -> AMSenderC;
App.Receive -> AMReceiverC;
} //end of implementation