Light Lux level data type added

This commit is contained in:
Henrik Ekblad
2015-03-24 11:05:48 +01:00
parent dbe06255fc
commit 663c0386ea
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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)
@@ -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()