From 223de2b76a44fb9922a5464dad6089bdfe541ccd Mon Sep 17 00:00:00 2001 From: matthias-bs <83612361+matthias-bs@users.noreply.github.com> Date: Wed, 8 May 2024 15:26:46 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20matthias?= =?UTF-8?q?-bs/BresserWeatherSensorReceiver@c1c09effb6fa291bb49a0632debadc?= =?UTF-8?q?6b3da1c2e5=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _weather_sensor_8h_source.html | 539 +++++++++++++++--------------- class_weather_sensor-members.html | 2 +- class_weather_sensor.html | 10 +- class_weather_sensor.js | 2 +- functions.html | 2 +- functions_func.html | 2 +- navtreeindex0.js | 2 +- search/all_6.js | 2 +- search/functions_4.js | 2 +- 9 files changed, 281 insertions(+), 282 deletions(-) diff --git a/_weather_sensor_8h_source.html b/_weather_sensor_8h_source.html index 4c5b8583..464958d5 100644 --- a/_weather_sensor_8h_source.html +++ b/_weather_sensor_8h_source.html @@ -246,298 +246,297 @@
171  Preferences cfgPrefs;
172  std::vector<uint32_t> sensor_ids_inc;
173  std::vector<uint32_t> sensor_ids_exc;
-
174  static uint8_t _dummy_en_decoders;
-
175 
-
176  public:
-
182  int16_t begin(void);
-
183 
-
187  void radioReset(void);
-
188 
-
192  void sleep(void);
-
193 
-
210  bool getData(uint32_t timeout, uint8_t flags = 0, uint8_t type = 0, void (*func)() = NULL);
+
174 
+
175  public:
+
181  int16_t begin(void);
+
182 
+
186  void radioReset(void);
+
187 
+
191  void sleep(void);
+
192 
+
209  bool getData(uint32_t timeout, uint8_t flags = 0, uint8_t type = 0, void (*func)() = NULL);
+
210 
211 
-
212 
-
219  DecodeStatus getMessage(void);
-
220 
-
227  DecodeStatus decodeMessage(const uint8_t *msg, uint8_t msgSize);
-
228 
-
229  struct Weather {
-
230  bool temp_ok = false;
-
231  bool humidity_ok = false;
-
232  bool light_ok = false;
-
233  bool uv_ok = false;
-
234  bool wind_ok = false;
-
235  bool rain_ok = false;
-
236  float temp_c = 0.0;
-
237  float light_klx = 0.0;
-
238  float light_lux = 0.0;
-
239  float uv = 0.0;
-
240  float rain_mm = 0.0;
-
241  #ifdef WIND_DATA_FLOATINGPOINT
-
242  float wind_direction_deg = 0.0;
-
243  float wind_gust_meter_sec = 0.0;
-
244  float wind_avg_meter_sec = 0.0;
-
245  #endif
-
246  #ifdef WIND_DATA_FIXEDPOINT
-
247  // For LoRa_Serialization:
-
248  // fixed point integer with 1 decimal -
-
249  // saves two bytes compared to "RawFloat"
-
250  uint16_t wind_direction_deg_fp1 = 0;
-
251  uint16_t wind_gust_meter_sec_fp1 = 0;
-
252  uint16_t wind_avg_meter_sec_fp1 = 0;
-
253  #endif
-
254  uint8_t humidity = 0;
-
255  };
-
256 
-
257  struct Soil {
-
258  float temp_c;
-
259  uint8_t moisture;
-
260  };
-
261 
-
262  struct Lightning {
-
263  uint8_t distance_km;
-
264  uint16_t strike_count;
-
265  uint16_t unknown1;
-
266  uint16_t unknown2;
-
267 
-
268  };
-
269 
-
270  struct Leakage {
-
271  bool alarm;
-
272  };
-
273 
-
274  struct AirPM {
-
275  uint16_t pm_1_0;
-
276  uint16_t pm_2_5;
-
277  uint16_t pm_10;
-
278  uint16_t pm_1_0_init;
-
279  bool pm_2_5_init;
-
280  bool pm_10_init;
-
281  };
-
282 
-
283  struct AirCO2 {
-
284  uint16_t co2_ppm;
-
285  bool co2_init;
-
286  };
-
287 
-
288  struct AirVOC {
-
289  uint16_t hcho_ppb;
-
290  uint8_t voc_level;
-
291  bool hcho_init;
-
292  bool voc_init;
-
293  };
-
294 
-
300  struct Sensor {
-
301  uint32_t sensor_id;
-
302  float rssi;
-
303  uint8_t s_type;
-
304  uint8_t chan;
-
305  bool startup = false;
-
306  bool battery_ok;
-
307  bool valid;
-
308  bool complete;
-
309  union {
-
310  struct Weather w;
-
311  struct Soil soil;
-
312  struct Lightning lgt;
-
313  struct Leakage leak;
-
314  struct AirPM pm;
-
315  struct AirCO2 co2;
-
316  struct AirVOC voc;
-
317  };
-
318 
-
319  Sensor ()
-
320  {
-
321  #pragma GCC diagnostic push
-
322  #pragma GCC diagnostic ignored "-Wclass-memaccess"
-
323  memset(this, 0, sizeof(*this));
-
324  #pragma GCC diagnostic pop
-
325  };
-
326  };
-
327 
-
328  typedef struct Sensor sensor_t;
-
329  std::vector<sensor_t> sensor;
-
330  float rssi = 0.0;
-
331  uint8_t rxFlags;
-
332  uint8_t enDecoders = 0xFF;
-
333 
-
339  bool genMessage(int i, uint32_t id = 0xff, uint8_t s_type = 1, uint8_t channel = 0, uint8_t startup = 0);
+
218  DecodeStatus getMessage(void);
+
219 
+
226  DecodeStatus decodeMessage(const uint8_t *msg, uint8_t msgSize);
+
227 
+
228  struct Weather {
+
229  bool temp_ok = false;
+
230  bool humidity_ok = false;
+
231  bool light_ok = false;
+
232  bool uv_ok = false;
+
233  bool wind_ok = false;
+
234  bool rain_ok = false;
+
235  float temp_c = 0.0;
+
236  float light_klx = 0.0;
+
237  float light_lux = 0.0;
+
238  float uv = 0.0;
+
239  float rain_mm = 0.0;
+
240  #ifdef WIND_DATA_FLOATINGPOINT
+
241  float wind_direction_deg = 0.0;
+
242  float wind_gust_meter_sec = 0.0;
+
243  float wind_avg_meter_sec = 0.0;
+
244  #endif
+
245  #ifdef WIND_DATA_FIXEDPOINT
+
246  // For LoRa_Serialization:
+
247  // fixed point integer with 1 decimal -
+
248  // saves two bytes compared to "RawFloat"
+
249  uint16_t wind_direction_deg_fp1 = 0;
+
250  uint16_t wind_gust_meter_sec_fp1 = 0;
+
251  uint16_t wind_avg_meter_sec_fp1 = 0;
+
252  #endif
+
253  uint8_t humidity = 0;
+
254  };
+
255 
+
256  struct Soil {
+
257  float temp_c;
+
258  uint8_t moisture;
+
259  };
+
260 
+
261  struct Lightning {
+
262  uint8_t distance_km;
+
263  uint16_t strike_count;
+
264  uint16_t unknown1;
+
265  uint16_t unknown2;
+
266 
+
267  };
+
268 
+
269  struct Leakage {
+
270  bool alarm;
+
271  };
+
272 
+
273  struct AirPM {
+
274  uint16_t pm_1_0;
+
275  uint16_t pm_2_5;
+
276  uint16_t pm_10;
+
277  uint16_t pm_1_0_init;
+
278  bool pm_2_5_init;
+
279  bool pm_10_init;
+
280  };
+
281 
+
282  struct AirCO2 {
+
283  uint16_t co2_ppm;
+
284  bool co2_init;
+
285  };
+
286 
+
287  struct AirVOC {
+
288  uint16_t hcho_ppb;
+
289  uint8_t voc_level;
+
290  bool hcho_init;
+
291  bool voc_init;
+
292  };
+
293 
+
299  struct Sensor {
+
300  uint32_t sensor_id;
+
301  float rssi;
+
302  uint8_t s_type;
+
303  uint8_t chan;
+
304  bool startup = false;
+
305  bool battery_ok;
+
306  bool valid;
+
307  bool complete;
+
308  union {
+
309  struct Weather w;
+
310  struct Soil soil;
+
311  struct Lightning lgt;
+
312  struct Leakage leak;
+
313  struct AirPM pm;
+
314  struct AirCO2 co2;
+
315  struct AirVOC voc;
+
316  };
+
317 
+
318  Sensor ()
+
319  {
+
320  #pragma GCC diagnostic push
+
321  #pragma GCC diagnostic ignored "-Wclass-memaccess"
+
322  memset(this, 0, sizeof(*this));
+
323  #pragma GCC diagnostic pop
+
324  };
+
325  };
+
326 
+
327  typedef struct Sensor sensor_t;
+
328  std::vector<sensor_t> sensor;
+
329  float rssi = 0.0;
+
330  uint8_t rxFlags;
+
331  uint8_t enDecoders = 0xFF;
+
332 
+
338  bool genMessage(int i, uint32_t id = 0xff, uint8_t s_type = 1, uint8_t channel = 0, uint8_t startup = 0);
+
339 
340 
-
341 
-
350  void clearSlots(uint8_t type = 0xFF)
-
351  {
-
352  for (size_t i=0; i<sensor.size(); i++) {
-
353  if ((type == 0xFF) || (sensor[i].s_type == type)) {
-
354  sensor[i].valid = false;
-
355  sensor[i].complete = false;
-
356  }
-
357  if (sensor[i].s_type == SENSOR_TYPE_WEATHER1) {
-
358  sensor[i].w.temp_ok = false;
-
359  sensor[i].w.humidity_ok = false;
-
360  sensor[i].w.light_ok = false;
-
361  sensor[i].w.uv_ok = false;
-
362  sensor[i].w.wind_ok = false;
-
363  sensor[i].w.rain_ok = false;
-
364  }
-
365  }
-
366  };
-
367 
-
375  int findId(uint32_t id);
+
349  void clearSlots(uint8_t type = 0xFF)
+
350  {
+
351  for (size_t i=0; i<sensor.size(); i++) {
+
352  if ((type == 0xFF) || (sensor[i].s_type == type)) {
+
353  sensor[i].valid = false;
+
354  sensor[i].complete = false;
+
355  }
+
356  if (sensor[i].s_type == SENSOR_TYPE_WEATHER1) {
+
357  sensor[i].w.temp_ok = false;
+
358  sensor[i].w.humidity_ok = false;
+
359  sensor[i].w.light_ok = false;
+
360  sensor[i].w.uv_ok = false;
+
361  sensor[i].w.wind_ok = false;
+
362  sensor[i].w.rain_ok = false;
+
363  }
+
364  }
+
365  };
+
366 
+
374  int findId(uint32_t id);
+
375 
376 
-
377 
-
386  int findType(uint8_t type, uint8_t channel = 0xFF);
-
387 
-
394  void setSensorsInc(uint8_t *bytes, uint8_t size);
-
395 
-
402  void setSensorsExc(uint8_t *bytes, uint8_t size);
-
403 
-
411  void setSensorsCfg(uint8_t max_sensors, uint8_t rx_flags, uint8_t en_decoders = 0xFF);
-
412 
-
420  uint8_t getSensorsInc(uint8_t *payload);
-
421 
-
429  uint8_t getSensorsExc(uint8_t *payload);
-
430 
-
438  void getSensorsCfg(uint8_t &max_sensors, uint8_t &rx_flags, uint8_t &en_decoders = _dummy_en_decoders);
-
439 
-
440  private:
-
441  struct Sensor *pData;
-
442 
-
452  void initList(std::vector<uint32_t> &list, const std::vector<uint32_t> list_def, const char *key);
-
453 
-
471  int findSlot(uint32_t id, DecodeStatus * status);
+
385  int findType(uint8_t type, uint8_t channel = 0xFF);
+
386 
+
393  void setSensorsInc(uint8_t *bytes, uint8_t size);
+
394 
+
401  void setSensorsExc(uint8_t *bytes, uint8_t size);
+
402 
+
410  void setSensorsCfg(uint8_t max_sensors, uint8_t rx_flags, uint8_t en_decoders = 0xFF);
+
411 
+
419  uint8_t getSensorsInc(uint8_t *payload);
+
420 
+
428  uint8_t getSensorsExc(uint8_t *payload);
+
429 
+
437  void getSensorsCfg(uint8_t &max_sensors, uint8_t &rx_flags, uint8_t &en_decoders);
+
438 
+
439  private:
+
440  struct Sensor *pData;
+
441 
+
451  void initList(std::vector<uint32_t> &list, const std::vector<uint32_t> list_def, const char *key);
+
452 
+
470  int findSlot(uint32_t id, DecodeStatus * status);
+
471 
472 
-
473 
-
474  #ifdef BRESSER_5_IN_1
-
484  DecodeStatus decodeBresser5In1Payload(const uint8_t *msg, uint8_t msgSize);
-
485  #endif
-
486  #ifdef BRESSER_6_IN_1
-
498  DecodeStatus decodeBresser6In1Payload(const uint8_t *msg, uint8_t msgSize);
-
499  #endif
-
500  #ifdef BRESSER_7_IN_1
-
510  DecodeStatus decodeBresser7In1Payload(const uint8_t *msg, uint8_t msgSize);
-
511  #endif
-
512  #ifdef BRESSER_LIGHTNING
-
522  DecodeStatus decodeBresserLightningPayload(const uint8_t *msg, uint8_t msgSize);
-
523  #endif
-
524  #ifdef BRESSER_LEAKAGE
-
534  DecodeStatus decodeBresserLeakagePayload(const uint8_t *msg, uint8_t msgSize);
-
535  #endif
-
536 
-
537  protected:
-
541  uint16_t lfsr_digest16(uint8_t const message[], unsigned bytes, uint16_t gen, uint16_t key);
-
542 
-
551  int add_bytes(uint8_t const message[], unsigned num_bytes);
-
552 
-
563  uint16_t crc16(uint8_t const message[], unsigned nBytes, uint16_t polynomial, uint16_t init);
-
564 
-
565  #if CORE_DEBUG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG
-
577  void log_message(const char *descr, const uint8_t *msg, uint8_t msgSize) {
-
578  char buf[128];
-
579  const char txt[] = "Byte #: ";
-
580  int offs;
-
581  int len1 = strlen(txt);
-
582  int len2 = strlen(descr) + 2; // add colon and space
-
583  int prefix_len = max(len1, len2);
-
584 
-
585  memset(buf, ' ', prefix_len);
-
586  buf[prefix_len] = '\0';
-
587  offs = (len1 < len2) ? (len2 - len1) : 0;
-
588  strcpy(&buf[offs], txt);
-
589 
-
590  // Print byte index
-
591  for (size_t i = 0 ; i < msgSize; i++) {
-
592  sprintf(&buf[strlen(buf)], "%02d ", i);
-
593  }
-
594  log_d("%s", buf);
-
595 
-
596  memset(buf, ' ', prefix_len);
-
597  buf[prefix_len] ='\0';
-
598  offs = (len1 > len2) ? (len1 - len2) : 0;
-
599  sprintf(&buf[offs], "%s: ", descr);
-
600 
-
601  for (size_t i = 0 ; i < msgSize; i++) {
-
602  sprintf(&buf[strlen(buf)], "%02X ", msg[i]);
-
603  }
-
604  log_d("%s", buf);
-
605  }
-
606  #endif
-
607 
-
608 };
-
609 
-
610 #endif
+
473  #ifdef BRESSER_5_IN_1
+
483  DecodeStatus decodeBresser5In1Payload(const uint8_t *msg, uint8_t msgSize);
+
484  #endif
+
485  #ifdef BRESSER_6_IN_1
+
497  DecodeStatus decodeBresser6In1Payload(const uint8_t *msg, uint8_t msgSize);
+
498  #endif
+
499  #ifdef BRESSER_7_IN_1
+
509  DecodeStatus decodeBresser7In1Payload(const uint8_t *msg, uint8_t msgSize);
+
510  #endif
+
511  #ifdef BRESSER_LIGHTNING
+
521  DecodeStatus decodeBresserLightningPayload(const uint8_t *msg, uint8_t msgSize);
+
522  #endif
+
523  #ifdef BRESSER_LEAKAGE
+
533  DecodeStatus decodeBresserLeakagePayload(const uint8_t *msg, uint8_t msgSize);
+
534  #endif
+
535 
+
536  protected:
+
540  uint16_t lfsr_digest16(uint8_t const message[], unsigned bytes, uint16_t gen, uint16_t key);
+
541 
+
550  int add_bytes(uint8_t const message[], unsigned num_bytes);
+
551 
+
562  uint16_t crc16(uint8_t const message[], unsigned nBytes, uint16_t polynomial, uint16_t init);
+
563 
+
564  #if CORE_DEBUG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG
+
576  void log_message(const char *descr, const uint8_t *msg, uint8_t msgSize) {
+
577  char buf[128];
+
578  const char txt[] = "Byte #: ";
+
579  int offs;
+
580  int len1 = strlen(txt);
+
581  int len2 = strlen(descr) + 2; // add colon and space
+
582  int prefix_len = max(len1, len2);
+
583 
+
584  memset(buf, ' ', prefix_len);
+
585  buf[prefix_len] = '\0';
+
586  offs = (len1 < len2) ? (len2 - len1) : 0;
+
587  strcpy(&buf[offs], txt);
+
588 
+
589  // Print byte index
+
590  for (size_t i = 0 ; i < msgSize; i++) {
+
591  sprintf(&buf[strlen(buf)], "%02d ", i);
+
592  }
+
593  log_d("%s", buf);
+
594 
+
595  memset(buf, ' ', prefix_len);
+
596  buf[prefix_len] ='\0';
+
597  offs = (len1 > len2) ? (len1 - len2) : 0;
+
598  sprintf(&buf[offs], "%s: ", descr);
+
599 
+
600  for (size_t i = 0 ; i < msgSize; i++) {
+
601  sprintf(&buf[strlen(buf)], "%02X ", msg[i]);
+
602  }
+
603  log_d("%s", buf);
+
604  }
+
605  #endif
+
606 
+
607 };
+
608 
+
609 #endif
WeatherSensor
Receive, decode and store Bresser Weather Sensor Data Uses CC1101 or SX1276 radio module for receivin...
Definition: WeatherSensor.h:169
WeatherSensor::getMessage
DecodeStatus getMessage(void)
Tries to receive radio message (non-blocking) and to decode it. Timeout occurs after a multitude of e...
Definition: WeatherSensor.cpp:312
WeatherSensor::findId
int findId(uint32_t id)
Definition: WeatherSensor.cpp:556
WeatherSensor::radioReset
void radioReset(void)
Reset radio transceiver.
Definition: WeatherSensor.cpp:228
-
WeatherSensor::rxFlags
uint8_t rxFlags
receive flags (see getData())
Definition: WeatherSensor.h:331
-
WeatherSensor::rssi
float rssi
received signal strength indicator in dBm
Definition: WeatherSensor.h:330
+
WeatherSensor::rxFlags
uint8_t rxFlags
receive flags (see getData())
Definition: WeatherSensor.h:330
+
WeatherSensor::rssi
float rssi
received signal strength indicator in dBm
Definition: WeatherSensor.h:329
+
WeatherSensor::getSensorsCfg
void getSensorsCfg(uint8_t &max_sensors, uint8_t &rx_flags, uint8_t &en_decoders)
Definition: WeatherSensor.cpp:709
WeatherSensor::getData
bool getData(uint32_t timeout, uint8_t flags=0, uint8_t type=0, void(*func)()=NULL)
Wait for reception of data or occurrance of timeout. With BRESSER_6_IN_1, data is distributed across ...
Definition: WeatherSensor.cpp:238
WeatherSensor::setSensorsCfg
void setSensorsCfg(uint8_t max_sensors, uint8_t rx_flags, uint8_t en_decoders=0xFF)
Definition: WeatherSensor.cpp:693
-
WeatherSensor::enDecoders
uint8_t enDecoders
enabled Decoders
Definition: WeatherSensor.h:332
+
WeatherSensor::enDecoders
uint8_t enDecoders
enabled Decoders
Definition: WeatherSensor.h:331
WeatherSensor::sleep
void sleep(void)
Set transceiver into sleep mode.
Definition: WeatherSensor.cpp:233
-
WeatherSensor::getSensorsCfg
void getSensorsCfg(uint8_t &max_sensors, uint8_t &rx_flags, uint8_t &en_decoders=_dummy_en_decoders)
Definition: WeatherSensor.cpp:709
WeatherSensor::begin
int16_t begin(void)
Presence check and initialization of radio module.
Definition: WeatherSensor.cpp:131
WeatherSensor::findType
int findType(uint8_t type, uint8_t channel=0xFF)
Definition: WeatherSensor.cpp:569
WeatherSensor::getSensorsInc
uint8_t getSensorsInc(uint8_t *payload)
Definition: WeatherSensor.cpp:646
WeatherSensor::genMessage
bool genMessage(int i, uint32_t id=0xff, uint8_t s_type=1, uint8_t channel=0, uint8_t startup=0)
Generates data otherwise received and decoded from a radio message.
Definition: WeatherSensor.cpp:418
-
WeatherSensor::sensor_t
struct Sensor sensor_t
Shortcut for struct Sensor.
Definition: WeatherSensor.h:328
-
WeatherSensor::sensor
std::vector< sensor_t > sensor
sensor data array
Definition: WeatherSensor.h:329
+
WeatherSensor::sensor_t
struct Sensor sensor_t
Shortcut for struct Sensor.
Definition: WeatherSensor.h:327
+
WeatherSensor::sensor
std::vector< sensor_t > sensor
sensor data array
Definition: WeatherSensor.h:328
WeatherSensor::setSensorsInc
void setSensorsInc(uint8_t *bytes, uint8_t size)
Definition: WeatherSensor.cpp:623
WeatherSensor::getSensorsExc
uint8_t getSensorsExc(uint8_t *payload)
Definition: WeatherSensor.cpp:681
-
WeatherSensor::clearSlots
void clearSlots(uint8_t type=0xFF)
Clear sensor data.
Definition: WeatherSensor.h:350
+
WeatherSensor::clearSlots
void clearSlots(uint8_t type=0xFF)
Clear sensor data.
Definition: WeatherSensor.h:349
WeatherSensor::decodeMessage
DecodeStatus decodeMessage(const uint8_t *msg, uint8_t msgSize)
Decode message Tries the available decoders until a decoding was successful.
Definition: WeatherSensor.cpp:359
WeatherSensor::setSensorsExc
void setSensorsExc(uint8_t *bytes, uint8_t size)
Definition: WeatherSensor.cpp:658
SensorMap
Mapping of sensor IDs to names.
Definition: WeatherSensor.h:156
SensorMap::name
std::string name
Name of sensor (e.g. for MQTT topic)
Definition: WeatherSensor.h:158
SensorMap::id
uint32_t id
ID if sensor (as transmitted in radio message)
Definition: WeatherSensor.h:157
-
WeatherSensor::AirCO2
Definition: WeatherSensor.h:283
-
WeatherSensor::AirCO2::co2_init
bool co2_init
measurement value invalid due to initialization
Definition: WeatherSensor.h:285
-
WeatherSensor::AirCO2::co2_ppm
uint16_t co2_ppm
CO2 concentration in ppm.
Definition: WeatherSensor.h:284
-
WeatherSensor::AirPM
Definition: WeatherSensor.h:274
-
WeatherSensor::AirPM::pm_1_0
uint16_t pm_1_0
air quality PM1.0 in µg/m³
Definition: WeatherSensor.h:275
-
WeatherSensor::AirPM::pm_1_0_init
uint16_t pm_1_0_init
measurement value invalid due to initialization
Definition: WeatherSensor.h:278
-
WeatherSensor::AirPM::pm_10_init
bool pm_10_init
measurement value invalid due to initialization
Definition: WeatherSensor.h:280
-
WeatherSensor::AirPM::pm_2_5_init
bool pm_2_5_init
measurement value invalid due to initialization
Definition: WeatherSensor.h:279
-
WeatherSensor::AirPM::pm_2_5
uint16_t pm_2_5
air quality PM2.5 in µg/m³
Definition: WeatherSensor.h:276
-
WeatherSensor::AirPM::pm_10
uint16_t pm_10
air quality PM10 in µg/m³
Definition: WeatherSensor.h:277
-
WeatherSensor::AirVOC
Definition: WeatherSensor.h:288
-
WeatherSensor::AirVOC::hcho_init
bool hcho_init
measurement value invalid due to initialization
Definition: WeatherSensor.h:291
-
WeatherSensor::AirVOC::voc_level
uint8_t voc_level
volatile organic oompounds; 1 - bad air quality .. 5 - very good air quality
Definition: WeatherSensor.h:290
-
WeatherSensor::AirVOC::voc_init
bool voc_init
measurement value invalid due to initialization
Definition: WeatherSensor.h:292
-
WeatherSensor::AirVOC::hcho_ppb
uint16_t hcho_ppb
formaldehyde concentrartion in ppb
Definition: WeatherSensor.h:289
-
WeatherSensor::Leakage
Definition: WeatherSensor.h:270
-
WeatherSensor::Leakage::alarm
bool alarm
water leakage alarm (only water leakage)
Definition: WeatherSensor.h:271
-
WeatherSensor::Lightning
Definition: WeatherSensor.h:262
-
WeatherSensor::Lightning::unknown1
uint16_t unknown1
unknown part 1
Definition: WeatherSensor.h:265
-
WeatherSensor::Lightning::distance_km
uint8_t distance_km
lightning distance in km (only lightning)
Definition: WeatherSensor.h:263
-
WeatherSensor::Lightning::unknown2
uint16_t unknown2
unknown part 2
Definition: WeatherSensor.h:266
-
WeatherSensor::Lightning::strike_count
uint16_t strike_count
lightning strike counter (only lightning)
Definition: WeatherSensor.h:264
-
WeatherSensor::Sensor
sensor data and status flags
Definition: WeatherSensor.h:300
-
WeatherSensor::Sensor::battery_ok
bool battery_ok
battery o.k.
Definition: WeatherSensor.h:306
-
WeatherSensor::Sensor::rssi
float rssi
received signal strength indicator in dBm
Definition: WeatherSensor.h:302
-
WeatherSensor::Sensor::complete
bool complete
data is split into two separate messages is complete (only 6-in-1 WS)
Definition: WeatherSensor.h:308
-
WeatherSensor::Sensor::s_type
uint8_t s_type
sensor type
Definition: WeatherSensor.h:303
-
WeatherSensor::Sensor::startup
bool startup
startup after reset / battery change
Definition: WeatherSensor.h:305
-
WeatherSensor::Sensor::sensor_id
uint32_t sensor_id
sensor ID (5-in-1: 1 byte / 6-in-1: 4 bytes / 7-in-1: 2 bytes)
Definition: WeatherSensor.h:301
-
WeatherSensor::Sensor::chan
uint8_t chan
channel
Definition: WeatherSensor.h:304
-
WeatherSensor::Sensor::valid
bool valid
data valid (but not necessarily complete)
Definition: WeatherSensor.h:307
-
WeatherSensor::Soil
Definition: WeatherSensor.h:257
-
WeatherSensor::Soil::temp_c
float temp_c
temperature in degC
Definition: WeatherSensor.h:258
-
WeatherSensor::Soil::moisture
uint8_t moisture
moisture in % (only 6-in-1)
Definition: WeatherSensor.h:259
-
WeatherSensor::Weather
Definition: WeatherSensor.h:229
-
WeatherSensor::Weather::light_klx
float light_klx
Light KLux (only 7-in-1)
Definition: WeatherSensor.h:237
-
WeatherSensor::Weather::light_ok
bool light_ok
light o.k. (only 7-in-1)
Definition: WeatherSensor.h:232
-
WeatherSensor::Weather::light_lux
float light_lux
Light lux (only 7-in-1)
Definition: WeatherSensor.h:238
-
WeatherSensor::Weather::temp_ok
bool temp_ok
temperature o.k. (only 6-in-1)
Definition: WeatherSensor.h:230
-
WeatherSensor::Weather::temp_c
float temp_c
temperature in degC
Definition: WeatherSensor.h:236
-
WeatherSensor::Weather::humidity
uint8_t humidity
humidity in %
Definition: WeatherSensor.h:254
-
WeatherSensor::Weather::uv
float uv
uv radiation (only 6-in-1)
Definition: WeatherSensor.h:239
-
WeatherSensor::Weather::humidity_ok
bool humidity_ok
humidity o.k.
Definition: WeatherSensor.h:231
-
WeatherSensor::Weather::wind_ok
bool wind_ok
wind speed/direction o.k. (only 6-in-1)
Definition: WeatherSensor.h:234
-
WeatherSensor::Weather::uv_ok
bool uv_ok
uv radiation o.k. (only 6-in-1)
Definition: WeatherSensor.h:233
-
WeatherSensor::Weather::rain_mm
float rain_mm
rain gauge level in mm
Definition: WeatherSensor.h:240
-
WeatherSensor::Weather::rain_ok
bool rain_ok
rain gauge level o.k.
Definition: WeatherSensor.h:235
+
WeatherSensor::AirCO2
Definition: WeatherSensor.h:282
+
WeatherSensor::AirCO2::co2_init
bool co2_init
measurement value invalid due to initialization
Definition: WeatherSensor.h:284
+
WeatherSensor::AirCO2::co2_ppm
uint16_t co2_ppm
CO2 concentration in ppm.
Definition: WeatherSensor.h:283
+
WeatherSensor::AirPM
Definition: WeatherSensor.h:273
+
WeatherSensor::AirPM::pm_1_0
uint16_t pm_1_0
air quality PM1.0 in µg/m³
Definition: WeatherSensor.h:274
+
WeatherSensor::AirPM::pm_1_0_init
uint16_t pm_1_0_init
measurement value invalid due to initialization
Definition: WeatherSensor.h:277
+
WeatherSensor::AirPM::pm_10_init
bool pm_10_init
measurement value invalid due to initialization
Definition: WeatherSensor.h:279
+
WeatherSensor::AirPM::pm_2_5_init
bool pm_2_5_init
measurement value invalid due to initialization
Definition: WeatherSensor.h:278
+
WeatherSensor::AirPM::pm_2_5
uint16_t pm_2_5
air quality PM2.5 in µg/m³
Definition: WeatherSensor.h:275
+
WeatherSensor::AirPM::pm_10
uint16_t pm_10
air quality PM10 in µg/m³
Definition: WeatherSensor.h:276
+
WeatherSensor::AirVOC
Definition: WeatherSensor.h:287
+
WeatherSensor::AirVOC::hcho_init
bool hcho_init
measurement value invalid due to initialization
Definition: WeatherSensor.h:290
+
WeatherSensor::AirVOC::voc_level
uint8_t voc_level
volatile organic oompounds; 1 - bad air quality .. 5 - very good air quality
Definition: WeatherSensor.h:289
+
WeatherSensor::AirVOC::voc_init
bool voc_init
measurement value invalid due to initialization
Definition: WeatherSensor.h:291
+
WeatherSensor::AirVOC::hcho_ppb
uint16_t hcho_ppb
formaldehyde concentrartion in ppb
Definition: WeatherSensor.h:288
+
WeatherSensor::Leakage
Definition: WeatherSensor.h:269
+
WeatherSensor::Leakage::alarm
bool alarm
water leakage alarm (only water leakage)
Definition: WeatherSensor.h:270
+
WeatherSensor::Lightning
Definition: WeatherSensor.h:261
+
WeatherSensor::Lightning::unknown1
uint16_t unknown1
unknown part 1
Definition: WeatherSensor.h:264
+
WeatherSensor::Lightning::distance_km
uint8_t distance_km
lightning distance in km (only lightning)
Definition: WeatherSensor.h:262
+
WeatherSensor::Lightning::unknown2
uint16_t unknown2
unknown part 2
Definition: WeatherSensor.h:265
+
WeatherSensor::Lightning::strike_count
uint16_t strike_count
lightning strike counter (only lightning)
Definition: WeatherSensor.h:263
+
WeatherSensor::Sensor
sensor data and status flags
Definition: WeatherSensor.h:299
+
WeatherSensor::Sensor::battery_ok
bool battery_ok
battery o.k.
Definition: WeatherSensor.h:305
+
WeatherSensor::Sensor::rssi
float rssi
received signal strength indicator in dBm
Definition: WeatherSensor.h:301
+
WeatherSensor::Sensor::complete
bool complete
data is split into two separate messages is complete (only 6-in-1 WS)
Definition: WeatherSensor.h:307
+
WeatherSensor::Sensor::s_type
uint8_t s_type
sensor type
Definition: WeatherSensor.h:302
+
WeatherSensor::Sensor::startup
bool startup
startup after reset / battery change
Definition: WeatherSensor.h:304
+
WeatherSensor::Sensor::sensor_id
uint32_t sensor_id
sensor ID (5-in-1: 1 byte / 6-in-1: 4 bytes / 7-in-1: 2 bytes)
Definition: WeatherSensor.h:300
+
WeatherSensor::Sensor::chan
uint8_t chan
channel
Definition: WeatherSensor.h:303
+
WeatherSensor::Sensor::valid
bool valid
data valid (but not necessarily complete)
Definition: WeatherSensor.h:306
+
WeatherSensor::Soil
Definition: WeatherSensor.h:256
+
WeatherSensor::Soil::temp_c
float temp_c
temperature in degC
Definition: WeatherSensor.h:257
+
WeatherSensor::Soil::moisture
uint8_t moisture
moisture in % (only 6-in-1)
Definition: WeatherSensor.h:258
+
WeatherSensor::Weather
Definition: WeatherSensor.h:228
+
WeatherSensor::Weather::light_klx
float light_klx
Light KLux (only 7-in-1)
Definition: WeatherSensor.h:236
+
WeatherSensor::Weather::light_ok
bool light_ok
light o.k. (only 7-in-1)
Definition: WeatherSensor.h:231
+
WeatherSensor::Weather::light_lux
float light_lux
Light lux (only 7-in-1)
Definition: WeatherSensor.h:237
+
WeatherSensor::Weather::temp_ok
bool temp_ok
temperature o.k. (only 6-in-1)
Definition: WeatherSensor.h:229
+
WeatherSensor::Weather::temp_c
float temp_c
temperature in degC
Definition: WeatherSensor.h:235
+
WeatherSensor::Weather::humidity
uint8_t humidity
humidity in %
Definition: WeatherSensor.h:253
+
WeatherSensor::Weather::uv
float uv
uv radiation (only 6-in-1)
Definition: WeatherSensor.h:238
+
WeatherSensor::Weather::humidity_ok
bool humidity_ok
humidity o.k.
Definition: WeatherSensor.h:230
+
WeatherSensor::Weather::wind_ok
bool wind_ok
wind speed/direction o.k. (only 6-in-1)
Definition: WeatherSensor.h:233
+
WeatherSensor::Weather::uv_ok
bool uv_ok
uv radiation o.k. (only 6-in-1)
Definition: WeatherSensor.h:232
+
WeatherSensor::Weather::rain_mm
float rain_mm
rain gauge level in mm
Definition: WeatherSensor.h:239
+
WeatherSensor::Weather::rain_ok
bool rain_ok
rain gauge level o.k.
Definition: WeatherSensor.h:234
diff --git a/class_weather_sensor-members.html b/class_weather_sensor-members.html index c3018779..cf8f7d5c 100644 --- a/class_weather_sensor-members.html +++ b/class_weather_sensor-members.html @@ -98,7 +98,7 @@ genMessage(int i, uint32_t id=0xff, uint8_t s_type=1, uint8_t channel=0, uint8_t startup=0)WeatherSensor getData(uint32_t timeout, uint8_t flags=0, uint8_t type=0, void(*func)()=NULL)WeatherSensor getMessage(void)WeatherSensor - getSensorsCfg(uint8_t &max_sensors, uint8_t &rx_flags, uint8_t &en_decoders=_dummy_en_decoders)WeatherSensor + getSensorsCfg(uint8_t &max_sensors, uint8_t &rx_flags, uint8_t &en_decoders)WeatherSensor getSensorsExc(uint8_t *payload)WeatherSensor getSensorsInc(uint8_t *payload)WeatherSensor radioReset(void)WeatherSensor diff --git a/class_weather_sensor.html b/class_weather_sensor.html index 95cd39ff..1ff5ec9a 100644 --- a/class_weather_sensor.html +++ b/class_weather_sensor.html @@ -167,8 +167,8 @@   uint8_t getSensorsExc (uint8_t *payload)   -void getSensorsCfg (uint8_t &max_sensors, uint8_t &rx_flags, uint8_t &en_decoders=_dummy_en_decoders) -  +void getSensorsCfg (uint8_t &max_sensors, uint8_t &rx_flags, uint8_t &en_decoders) +  @@ -465,8 +465,8 @@

-

◆ getSensorsCfg()

+ +

◆ getSensorsCfg()

@@ -487,7 +487,7 @@

- + diff --git a/class_weather_sensor.js b/class_weather_sensor.js index 58454086..433afbb0 100644 --- a/class_weather_sensor.js +++ b/class_weather_sensor.js @@ -17,7 +17,7 @@ var class_weather_sensor = [ "genMessage", "class_weather_sensor.html#adffc6603766560fe6aa0cdd1200fc2a0", null ], [ "getData", "class_weather_sensor.html#a558191760f9d9b9bf12f79f6f3e5370a", null ], [ "getMessage", "class_weather_sensor.html#a05fbfc16fb2e13543591cb0b3cd8baaf", null ], - [ "getSensorsCfg", "class_weather_sensor.html#a9216b2bf75468c6141974c6f9519a30f", null ], + [ "getSensorsCfg", "class_weather_sensor.html#a522c70d5d83fe975ad85ff5994ae7a72", null ], [ "getSensorsExc", "class_weather_sensor.html#af6ffcbf06bb5aea95203fbb3a53aaf3d", null ], [ "getSensorsInc", "class_weather_sensor.html#ac6f489c26a476d658c2ce5161ea48441", null ], [ "radioReset", "class_weather_sensor.html#a2cb2e1d7ffb2aa6b641563772c72be20", null ], diff --git a/functions.html b/functions.html index 4dd3b997..a8c879f7 100644 --- a/functions.html +++ b/functions.html @@ -176,7 +176,7 @@

- g -

Public Attributes

uint8_t & en_decoders = _dummy_en_decoders en_decoders