SRK Version of mDot LoRa_Sensormode_SRK
Dependencies: libmDot mbed-rtos mbed
Fork of mDot_LoRa_Sensornode by
LoRaMeasurementMessage Class Reference
A Container that can hold acquired measurement values such as Rssi, Snr and some other config values from the LoRa Module. More...
#include <LoRaMeasuermentMessage.h>
Inherits SensorMessage.
Public Member Functions | |
void | setRssi (int16_t rssi) |
Sets the rssi value of the LoRaMeasurementMessage. | |
int16_t | getRssi () |
Gets the stored rssi value of the LoRaMeasurmentMessage. | |
void | setSnr (int16_t snr) |
Sets the snr value of the LoRaMeasurementMessage. | |
int16_t | getSnr () |
Gets the stored snr value of the LoRaMeasurementMessage. | |
void | setSpreadingFactor (uint8_t spreadingFactor) |
Sets the spreadingFactor of the LoRaMeasurementMessage. | |
uint8_t | getSpreadingFactor () |
Gets the stored spreading Factor of the LoRaMeasurementMessage. | |
void | setTxPowerdBm (uint8_t txPowerdBm) |
Sets the tx Power value in dBm of the LoRaMeasurementMessage. | |
uint8_t | getTxPowerdBm () |
Gets the stored tx Power in dBm of the LoRaMeasurementMessage | |
virtual char * | getLoRaMessageString () |
Gets a small LoRaMessage Type Formated String from the LoRaMeasurmentMessage. |
Detailed Description
A Container that can hold acquired measurement values such as Rssi, Snr and some other config values from the LoRa Module.
The container will be transported via a MessageQueue between different Tasks and its intended to stored measurement results.
Definition at line 22 of file LoRaMeasuermentMessage.h.
Member Function Documentation
char * getLoRaMessageString | ( | ) | [virtual] |
Gets a small LoRaMessage Type Formated String from the LoRaMeasurmentMessage.
This String can later be used for transportation via LoRa
- Returns:
Reimplemented from SensorMessage.
Definition at line 55 of file LoRaMeasuermentMessage.cpp.
int16_t getRssi | ( | ) |
Gets the stored rssi value of the LoRaMeasurmentMessage.
- Returns:
Definition at line 27 of file LoRaMeasuermentMessage.cpp.
int16_t getSnr | ( | ) |
Gets the stored snr value of the LoRaMeasurementMessage.
- Returns:
Definition at line 35 of file LoRaMeasuermentMessage.cpp.
uint8_t getSpreadingFactor | ( | ) |
Gets the stored spreading Factor of the LoRaMeasurementMessage.
- Returns:
Definition at line 43 of file LoRaMeasuermentMessage.cpp.
uint8_t getTxPowerdBm | ( | ) |
Gets the stored tx Power in dBm of the LoRaMeasurementMessage
- Returns:
Definition at line 51 of file LoRaMeasuermentMessage.cpp.
void setRssi | ( | int16_t | rssi ) |
Sets the rssi value of the LoRaMeasurementMessage.
- Parameters:
-
rssi rssi value to be stored
Definition at line 23 of file LoRaMeasuermentMessage.cpp.
void setSnr | ( | int16_t | snr ) |
Sets the snr value of the LoRaMeasurementMessage.
- Parameters:
-
snr snr value to be stored
Definition at line 31 of file LoRaMeasuermentMessage.cpp.
void setSpreadingFactor | ( | uint8_t | spreadingFactor ) |
Sets the spreadingFactor of the LoRaMeasurementMessage.
- Parameters:
-
spreadingFactor spreading Factor to be stored
Definition at line 39 of file LoRaMeasuermentMessage.cpp.
void setTxPowerdBm | ( | uint8_t | txPowerdBm ) |
Sets the tx Power value in dBm of the LoRaMeasurementMessage.
- Parameters:
-
txPowerdBm tx Power in dBm to be stored
Definition at line 47 of file LoRaMeasuermentMessage.cpp.
Generated on Wed Jul 13 2022 09:23:48 by 1.7.2