L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
Per-sensor payload size helpers

The chunk structure for read/write data from/to device. The data buffer size depends on current DataRate, and cannot exceed the maximimum for current data rate, otherwise the lora process fails. More...

Macros

#define SIZE_SHT45   sizeof(tmphm_sht45_t)
 Byte size of tmphm_sht45_t in the packed sensor record.
#define SIZE_SHT45_NFC   (4+3)
 Byte size of payload CayennelLpp data for NFC stored into.
#define SIZE_SHT45_NFC_NEG   0
#define SIZE_TSL2591   0
#define SIZE_TSL2591_NFC   0
#define SIZE_ILS22QS   0
#define SIZE_ILS22QS_NFC   0
#define SIZE_BMP585   sizeof(bar_bmp585_t)
 Byte size of bar_bmp585_t in the packed sensor record.
#define SIZE_BMP585_NFC   (4+0)
 Byte size of payload CayennelLpp data for NFC stored into.
#define SIZE_SCD41   0
#define SIZE_SCD41_NFC   0
#define SIZE_SPS30   0
#define SIZE_SPS30_NFC   0

Detailed Description

The chunk structure for read/write data from/to device. The data buffer size depends on current DataRate, and cannot exceed the maximimum for current data rate, otherwise the lora process fails.

Max payload per DR (EU868 region):
Data Rate Spreading Factor Max App Payload
DR0 SF12 / 125kHz 51 bytes
DR1 SF11 / 125kHz 51 bytes
DR2 SF10 / 125kHz 51 bytes
DR3 SF9 / 125kHz 115 bytes
DR4 SF8 / 125kHz 222 bytes
DR5 SF7 / 125kHz 222 bytes

Each macro evaluates to sizeof(sensor_data_struct) when the corresponding sensor is enabled, or 0 when it is disabled. Used to compute SENSORS_DATASIZE.

Macro Definition Documentation

◆ SIZE_BMP585

#define SIZE_BMP585   sizeof(bar_bmp585_t)

Byte size of bar_bmp585_t in the packed sensor record.

Definition at line 84 of file mysensors_base.h.

◆ SIZE_BMP585_NFC

#define SIZE_BMP585_NFC   (4+0)

Byte size of payload CayennelLpp data for NFC stored into.

Definition at line 86 of file mysensors_base.h.

◆ SIZE_ILS22QS

#define SIZE_ILS22QS   0

Definition at line 78 of file mysensors_base.h.

◆ SIZE_ILS22QS_NFC

#define SIZE_ILS22QS_NFC   0

Definition at line 79 of file mysensors_base.h.

◆ SIZE_SCD41

#define SIZE_SCD41   0

Definition at line 98 of file mysensors_base.h.

◆ SIZE_SCD41_NFC

#define SIZE_SCD41_NFC   0

Definition at line 99 of file mysensors_base.h.

◆ SIZE_SHT45

#define SIZE_SHT45   sizeof(tmphm_sht45_t)

Byte size of tmphm_sht45_t in the packed sensor record.

Definition at line 52 of file mysensors_base.h.

◆ SIZE_SHT45_NFC

#define SIZE_SHT45_NFC   (4+3)

Byte size of payload CayennelLpp data for NFC stored into.

Definition at line 54 of file mysensors_base.h.

◆ SIZE_SHT45_NFC_NEG

#define SIZE_SHT45_NFC_NEG   0

Definition at line 55 of file mysensors_base.h.

◆ SIZE_SPS30

#define SIZE_SPS30   0

Definition at line 108 of file mysensors_base.h.

◆ SIZE_SPS30_NFC

#define SIZE_SPS30_NFC   0

Definition at line 109 of file mysensors_base.h.

◆ SIZE_TSL2591

#define SIZE_TSL2591   0

Definition at line 68 of file mysensors_base.h.

◆ SIZE_TSL2591_NFC

#define SIZE_TSL2591_NFC   0

Definition at line 69 of file mysensors_base.h.