Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 Tue Jul 12 2022 20:10:02 by
1.7.2
