#include <Loom_Freewave.h>
|
| Loom_Freewave (Manager &man, const uint8_t address=-1, const uint16_t max_message_len=RH_SERIAL_MAX_MESSAGE_LEN, const uint8_t retryCount=3, const uint16_t retryTimeout=200) |
|
bool | receive (uint maxWaitTime) override |
|
bool | send (const uint8_t destinationAddress) override |
|
void | initialize () override |
|
void | package () override |
|
void | power_up () override |
|
void | power_down () override |
|
void | setAddress (const uint8_t addr) |
|
| Radio (const char *moduleName) |
|
| Module (const char *modName) |
|
void | setModuleName (const char *modName) |
|
virtual const char * | getModuleName () |
|
virtual void | printModuleName (const char *message) |
|
virtual void | initialize ()=0 |
|
virtual void | measure ()=0 |
|
virtual void | package ()=0 |
|
virtual void | power_up ()=0 |
|
virtual void | power_down ()=0 |
|
virtual void | display_data () |
|
|
bool | moduleInitialized = true |
|
int | module_address = -1 |
|
uint8_t | deviceAddress |
|
uint16_t | maxMessageLength |
|
int16_t | signalStrength |
|
uint8_t | powerLevel |
|
uint8_t | retryCount |
|
uint16_t | retryTimeout |
|
StaticJsonDocument< 300 > | recvDoc |
|
StaticJsonDocument< 300 > | sendDoc |
|
Used to communicate with LoRa type radios
- Author
- Will Richards
◆ Loom_Freewave()
Loom_Freewave::Loom_Freewave |
( |
Manager & |
man, |
|
|
const uint8_t |
address = -1 , |
|
|
const uint16_t |
max_message_len = RH_SERIAL_MAX_MESSAGE_LEN , |
|
|
const uint8_t |
retryCount = 3 , |
|
|
const uint16_t |
retryTimeout = 200 |
|
) |
| |
Construct a new LoRa driver
- Parameters
-
man | Reference to the manager |
max_message_len | The maximum possible message length we can transmit |
address | This device's LoRa address |
powerLevel | Transmission power level, low to high |
retryCount | Number of attempts to make before failing |
retryTimeout | Length of time between retransmissions (ms) |
◆ initialize()
void Loom_Freewave::initialize |
( |
| ) |
|
|
overridevirtual |
Initialize the module
Implements Module.
◆ measure()
void Loom_Freewave::measure |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ package()
void Loom_Freewave::package |
( |
| ) |
|
|
overridevirtual |
Package basic data about the device
Implements Module.
◆ power_down()
void Loom_Freewave::power_down |
( |
| ) |
|
|
overridevirtual |
Power down the module
Implements Module.
◆ power_up()
void Loom_Freewave::power_up |
( |
| ) |
|
|
overridevirtual |
Power up the module
Implements Module.
◆ receive()
bool Loom_Freewave::receive |
( |
uint |
maxWaitTime | ) |
|
|
overridevirtual |
Receive a JSON packet from another radio, blocking until the wait time expires or a packet is received
- Parameters
-
maxWaitTime | The maximum time to wait before continuing execution (Set to 0 for non-blocking) |
Implements Radio.
◆ send()
bool Loom_Freewave::send |
( |
const uint8_t |
destinationAddress | ) |
|
|
overridevirtual |
Send the current JSON data to the specified address
- Parameters
-
destinationAddress | The address we want to send the data to |
Implements Radio.
◆ setAddress()
void Loom_Freewave::setAddress |
( |
const uint8_t |
addr | ) |
|
Set the address of the device
The documentation for this class was generated from the following files:
- C:/Users/jwilt/AppData/Local/Arduino15/packages/loom4/hardware/samd/4.5/libraries/Loom/src/Radio/Loom_Freewave/Loom_Freewave.h
- C:/Users/jwilt/AppData/Local/Arduino15/packages/loom4/hardware/samd/4.5/libraries/Loom/src/Radio/Loom_Freewave/Loom_Freewave.cpp