diff --git a/libraries/MySensors/MyMessage.h b/libraries/MySensors/MyMessage.h index c2698bc..93edc74 100644 --- a/libraries/MySensors/MyMessage.h +++ b/libraries/MySensors/MyMessage.h @@ -42,7 +42,8 @@ typedef enum { V_DUST_LEVEL, V_VOLTAGE, V_CURRENT, V_RGB, // Used for sending/receiving color information. Sent as ascii hex. RRGGBB (RR=red, GG=green, BB=blue component) V_RGBW, // Used for sending/receiving color information. Sent as ascii hex. RRGGBBWW (WW=while component) - V_ID // Can be used for reporting ids for sensors such as DS1820b. + V_ID, // Can be used for reporting ids for sensors such as DS1820b. + V_LIGHT_LEVEL_LUX // Light level in lux } mysensor_data; // Type of internal messages (for internal messages) diff --git a/libraries/MySensors/examples/LightLuxSensor/LightLuxSensor.ino b/libraries/MySensors/examples/LightLuxSensor/LightLuxSensor.ino index 441c65e..2896056 100644 --- a/libraries/MySensors/examples/LightLuxSensor/LightLuxSensor.ino +++ b/libraries/MySensors/examples/LightLuxSensor/LightLuxSensor.ino @@ -27,7 +27,7 @@ unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds) BH1750 lightSensor; MySensor gw; -MyMessage msg(CHILD_ID_LIGHT, V_LIGHT_LEVEL); +MyMessage msg(CHILD_ID_LIGHT, V_LIGHT_LEVEL_LUX); uint16_t lastlux; void setup()