Exemple #1
0
 public TelosbSensor(UInt16 Id, TelosbConfig newconfig)
 {
     id       = Id;
     type     = (int)SensorType.TELOSB;
     online   = true;
     online_t = false;
     port     = -1;
     for (int i = 0; i < 2; i++)
     {
         telosbdata[i] = 0;
     }
     if (Id == newconfig.id)
     {
         config = newconfig.config;
     }
     temperature         = 0.0;
     humidity            = 0.0;
     newindata           = false;
     uploadcreatenewfile = true;
 }
Exemple #2
0
 public TelosbSensor(UInt16 Id,TelosbConfig newconfig)
 {
     id = Id;
     type = (int)SensorType.TELOSB;
     online = true;
     online_t = false;
     port = -1;
     for (int i = 0; i < 2; i++)
         telosbdata[i] = 0;
     if (Id == newconfig.id)
         config = newconfig.config;
     temperature = 0.0;
     humidity = 0.0;
     newindata = false;
     uploadcreatenewfile = true;
 }