Changes between Version 61 and Version 62 of WikiStart


Ignore:
Timestamp:
2013-09-24 09:34:59 (11 years ago)
Author:
hek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v61 v62  
    6767  vera.begin(); 
    6868 
    69   // Register sensor(s) to Vera (they will be created as child devices when found). 
    70   // childId - Each Arduino can have up to 128 child sensors. 0-127. 
    71   // deviceType - Which (vera) device type to use for this sensor. See [[http://code.mios.com/trac/mios_arduino-sensor/browser/trunk/Arduino/libraries/Vera/Vera.h|vera.h]]). 
    72   vera.sendSensorPresentation(<childId>, <deviceType>);  
     69  // Register sensor(s) to Vera (they will be created as child devices when found). The arguments as follows. 
     70  // childId      Each Arduino can have up to 128 child sensors. 0-127.  
     71  //              Here we register childId 0. 
     72  // deviceType   Which (vera) device type to use for this sensor. See Vera.h for all options available.  
     73  //              In this example we use a motion sensor 
     74  vera.sendSensorPresentation(0, S_MOTION);  
    7375} 
    7476 
    75  
    76  
     77void loop()       
     78{      
     79   // Send a variable change to vera. In this case for childId 0 set the Tripped value to "1".   
     80   vera.sendVariable(0, V_TRIPPED, "1"); 
     81   delay(10000); // Delay 10 seconds 
     82} 
    7783  }}} 
    7884}}}