Tweaked sketch info formatting in two examples for consistency...
This commit is contained in:
@@ -26,7 +26,6 @@ void setup()
|
|||||||
// Send the sketch version information to the gateway and Controller
|
// Send the sketch version information to the gateway and Controller
|
||||||
gw.sendSketchInfo("Temperature Sensor", "1.0");
|
gw.sendSketchInfo("Temperature Sensor", "1.0");
|
||||||
|
|
||||||
|
|
||||||
// Fetch the number of attached sensors
|
// Fetch the number of attached sensors
|
||||||
numSensors = sensors.getDeviceCount();
|
numSensors = sensors.getDeviceCount();
|
||||||
// Register all sensors to gw (they will be created as child devices)
|
// Register all sensors to gw (they will be created as child devices)
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ void setup()
|
|||||||
// Send the sketch version information to the gateway and Controller
|
// Send the sketch version information to the gateway and Controller
|
||||||
gw.sendSketchInfo("Energy Meter", "1.0");
|
gw.sendSketchInfo("Energy Meter", "1.0");
|
||||||
|
|
||||||
|
|
||||||
// Register this device as power sensor
|
// Register this device as power sensor
|
||||||
gw.sendSensorPresentation(CHILD_ID, S_POWER);
|
gw.sendSensorPresentation(CHILD_ID, S_POWER);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user