uses Telegram dBm values as filter base
More...
#include <eodBmFilter.h>
uses Telegram dBm values as filter base
eodBmFilter is an easy filter, which allows you to filter a Telegram via the dBm Value
- Note
- the dBm value is a signed! value and normally between (far away)-90...-40dBm(near)
- Examples:
- GatewayFiltered_example.cpp, tutorial1.cpp, and tutorial6.cpp.
◆ eodBmFilter() [1/2]
eodBmFilter::eodBmFilter |
( |
| ) |
|
Using this constructor, no Telegrams get filtered
◆ eodBmFilter() [2/2]
eodBmFilter::eodBmFilter |
( |
int8_t |
maxDBm, |
|
|
int8_t |
minDBm |
|
) |
| |
Constructor which sets max and min DBM
- Parameters
-
maxDBm | maximal dBM Value allowed |
minDBm | minimal dBM Value needed |
◆ Filter() [1/2]
You can't filter normal messages, as they don't contain a dBm Information!
- Parameters
-
- Returns
- false
Reimplemented from eoIFilter.
◆ Filter() [2/2]
Filters the Telegram comparing its dBm against the set dBm
- Parameters
-
- Returns
- true when the dBm value is between max and min is in the Filter list.
Reimplemented from eoIFilter.
◆ Serialize()
virtual uint8_t eodBmFilter::Serialize |
( |
eoArchive & |
arch | ) |
|
|
virtual |
◆ maxdBm
int8_t eodBmFilter::maxdBm |
◆ mindBm
int8_t eodBmFilter::mindBm |