Skip to content
protopapa edited this page Sep 16, 2011 · 2 revisions

###Wish to extend??? You can extend the Library by two ways:

  • Add a new module to be programmed to the already deployed motes
  • Add a new mote to be programmed with Library, for example iSense.

###Add a new module:

  1. Your first step should be to extend the protocol in order to support the new module.
  2. Then you should extend the program for the according mote . For example if you wish to add an interface for a FSR Sensor on Arduino, you should extend the processPacket() function to process the new command, then program its pins and inform you when an event in regard to FSR sensor happens.
  3. Then on the Controller source, you should extend the Service Layer to support the new module providing the methos to program it.

###Add a new mote

Say you want extend Library to support also a third mote, for example iSense:

  1. You should create a program for iSense to process the commands according to the protocol, and send you back the information for the environment.
  2. Then on the Controller you should extend the registration mechanism to support also iSense.
  3. At last, you should extend the Service layer to provide methods for programming and controlling iSense the way you wish.
Clone this wiki locally