A multifunctional and modular Firmware for Multitech's mDot based on ARM mBed provides a widerange of functionality for several Sensors such as MAX44009, BME280, MPU9250, SI1143 and uBlox. It allows you to quickly build a Sensornode that measures specific data with its sensors and sends it via LoRaWAN.

Dependencies:   mDot_LoRa_Sensornode_Flowmeter_impl mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

LoRaMeasurementMessage Class Reference

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:
rssirssi 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:
snrsnr value to be stored

Definition at line 31 of file LoRaMeasuermentMessage.cpp.

void setSpreadingFactor ( uint8_t  spreadingFactor )

Sets the spreadingFactor of the LoRaMeasurementMessage.

Parameters:
spreadingFactorspreading 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:
txPowerdBmtx Power in dBm to be stored

Definition at line 47 of file LoRaMeasuermentMessage.cpp.