Tweaked sketch info formatting in two examples for consistency...
This commit is contained in:
@@ -23,9 +23,8 @@ void setup()
|
|||||||
sensors.begin();
|
sensors.begin();
|
||||||
gw.begin();
|
gw.begin();
|
||||||
|
|
||||||
// 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();
|
||||||
|
|||||||
@@ -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