LoRaWANCH341 Library
Loading...
Searching...
No Matches
Macros | Functions | Variables
main.cpp File Reference
#include "LoRaWAN.hpp"
#include "ConfigManager.hpp"
#include <iostream>
#include <thread>
#include <chrono>
#include <cstdio>
#include <string>
#include <cstring>
#include <memory>
#include <iomanip>
#include <array>
#include <vector>
#include "SPIInterface.hpp"
Include dependency graph for main.cpp:

Macros

#define DEBUG_PRINT(x)   do { if(LoRaWAN::getVerbose()) { std::cout << x; } } while(0)
 
#define DEBUG_PRINTLN(x)   do { if(LoRaWAN::getVerbose()) { std::cout << x << std::endl; } } while(0)
 
#define DEBUG_HEX(x)   do { if(LoRaWAN::getVerbose()) { std::cout << std::hex << (x) << std::dec; } } while(0)
 

Functions

void resetAndRejoin (LoRaWAN &lora, const std::string &devEUI, const std::string &appEUI, const std::string &appKey)
 
void showHelp ()
 
void receiveCallback (const LoRaWAN::Message &message)
 
int main (int argc, char *argv[])
 

Variables

LoRaWAN lora
 

Macro Definition Documentation

◆ DEBUG_HEX

#define DEBUG_HEX (   x)    do { if(LoRaWAN::getVerbose()) { std::cout << std::hex << (x) << std::dec; } } while(0)

◆ DEBUG_PRINT

#define DEBUG_PRINT (   x)    do { if(LoRaWAN::getVerbose()) { std::cout << x; } } while(0)

◆ DEBUG_PRINTLN

#define DEBUG_PRINTLN (   x)    do { if(LoRaWAN::getVerbose()) { std::cout << x << std::endl; } } while(0)

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

◆ receiveCallback()

void receiveCallback ( const LoRaWAN::Message message)
Here is the caller graph for this function:

◆ resetAndRejoin()

void resetAndRejoin ( LoRaWAN lora,
const std::string &  devEUI,
const std::string &  appEUI,
const std::string &  appKey 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ showHelp()

void showHelp ( )
Here is the caller graph for this function:

Variable Documentation

◆ lora

LoRaWAN lora