/* This function initializes the iridium module to work*/ void iridiumSetup() { // Initialize timer set_time(1256729737); startMillis(); diagSerial.baud(115200); nss.baud(19200); isbd.attachConsole(diagSerial); //isbd.attachDiags(diagSerial); isbd.adjustATTimeout(60); // adjust to longer time out time isbd.attachMessageBuffer(&messageBuffer); isbd.begin(); wait(5); isbd.setPowerProfile(1); }
node::node(char _cNroLights) //This constructor could specified every number of lights for a node. { pc.baud(9600); //Only for debuggin purpose if(_cNroLights>MAX_LIGHTS) cNroLights=MAX_LIGHTS; else cNroLights=_cNroLights; fTBase=(float)TIME_BASE; cStatusTimer=STOP; rtNodeTimer=NULL; for(char i=0;i<cNroLights;i++) myLights[i]=NULL; //sensor1 = NULL; //sensor2 = NULL; }