diff --git a/README.md b/README.md index 2696087d..05de35d7 100644 --- a/README.md +++ b/README.md @@ -490,15 +490,15 @@ Send for example `8386` as Downlink on Port 2 to get battery status and time/dat 0x14 set payload mask byte 1 = sensor data payload mask (0..255, meaning of bits see below) - 0x01 = GPS_DATA + 0x01 = COUNT_DATA 0x02 = ALARM_DATA 0x04 = MEMS_DATA - 0x08 = COUNT_DATA (default) - 0x10 = SENSOR_1_DATA (ENS-COUNTS) + 0x08 = GPS_DATA + 0x10 = SENSOR_1_DATA (also ENS counter) 0x20 = SENSOR_2_DATA 0x40 = SENSOR_3_DATA 0x80 = BATT_DATA - bytes can be combined eg COUNT_DATA ;SENSOR_1_DATA ;BATT_DATA: `0x08 | 0x10 |0x80 = 0x98` + bytes can be combined eg COUNT_DATA + SENSOR_1_DATA + BATT_DATA: `0x01 | 0x10 | 0x80 = 0x91` 0x15 set BME data on/off diff --git a/include/globals.h b/include/globals.h index 9c771b50..fecfbf32 100644 --- a/include/globals.h +++ b/include/globals.h @@ -19,10 +19,10 @@ #include // bits in payloadmask for filtering payload data -#define GPS_DATA (0x01) +#define COUNT_DATA (0x01) #define ALARM_DATA (0x02) #define MEMS_DATA (0x04) -#define COUNT_DATA (0x08) +#define GPS_DATA (0x08) #define SENSOR1_DATA (0x10) #define SENSOR2_DATA (0x20) #define SENSOR3_DATA (0x40)