sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
Uno_Serial_LoRa_Sniffer.ino File Reference
#include <SPI.h>
#include <RH_RF95.h>

Macros

#define ENABLE_BW_SCAN
 
#define ENABLE_SF_SCAN
 
#define LED   LED_BUILTIN
 
#define RH_FLAGS_ACK   0x80
 
#define FREQ_COUNT   3
 
#define BW_COUNT   2
 
#define SF_COUNT   2
 
#define FREQ_TIME_MS   4000
 

Functions

void rf95_setFrequency (uint32_t index)
 
void rf95_setBandwidth (uint32_t index)
 
void rf95_setSpreadingFactor (uint32_t index)
 
void setup ()
 
void loop ()
 

Variables

float _frequencies []
 
long int _bandwidths []
 
int _spreadingfactors []
 
uint16_t _packetCounts [FREQ_COUNT][BW_COUNT][SF_COUNT]
 
RH_RF95 rf95
 
uint8_t _rxBuffer [RH_RF95_MAX_MESSAGE_LEN]
 
uint8_t _rxRecvLen
 
uint32_t _freqExpire = 0
 
uint32_t _freqIndex = 0
 
bool _sdReady = false
 
uint32_t _bwIndex = 0
 
uint32_t _sfIndex = 0
 

Macro Definition Documentation

#define BW_COUNT   2
#define ENABLE_BW_SCAN
#define ENABLE_SF_SCAN
#define FREQ_COUNT   3
#define FREQ_TIME_MS   4000
#define LED   LED_BUILTIN
#define RH_FLAGS_ACK   0x80
#define SF_COUNT   2

Function Documentation

void loop ( void  )

OneWirePJON device status update function.

Returns
(void)

Arduino IDE: put your main code here, to run repeatedly.

void rf95_setBandwidth ( uint32_t  index)
void rf95_setFrequency ( uint32_t  index)
void rf95_setSpreadingFactor ( uint32_t  index)
void setup ( void  )

Arduino IDE: put your setup code here, to run once.

Variable Documentation

long int _bandwidths[]
Initial value:
=
{
500000,
250000,
}
uint32_t _bwIndex = 0
uint32_t _freqExpire = 0
uint32_t _freqIndex = 0
float _frequencies[]
Initial value:
=
{
865.4,
866.6,
869.2,
}
uint16_t _packetCounts[FREQ_COUNT][BW_COUNT][SF_COUNT]
uint8_t _rxBuffer[RH_RF95_MAX_MESSAGE_LEN]
uint8_t _rxRecvLen
bool _sdReady = false
uint32_t _sfIndex = 0
int _spreadingfactors[]
Initial value:
=
{
6,
7,
}
RH_RF95 rf95