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); |