77                unsigned int baudrate=RN2903_DEFAULT_BAUDRATE);
 
   87         RN2903(std::string uart_path,
 
   88                unsigned int baudrate=RN2903_DEFAULT_BAUDRATE);
 
  105             unsigned int wait_ms=RN2903_DEFAULT_RESP_DELAY);
 
  117             unsigned int wait_ms=RN2903_DEFAULT_RESP2_DELAY);
 
  151         RN2903_RESPONSE_T 
command(
const std::string cmd);
 
  164                                          const std::string arg);
 
  330         std::string 
toHex(
const std::string src);
 
  340         std::string 
fromHex(
const std::string src);
 
  360         RN2903_JOIN_STATUS_T 
join(RN2903_JOIN_TYPE_T type);
 
  383         RN2903_MAC_TX_STATUS_T 
macTx(RN2903_MAC_MSG_TYPE_T type,
 
  384                                      int port, std::string payload);
 
  398         RN2903_RESPONSE_T 
radioTx(
const std::string payload);
 
  418         RN2903_RESPONSE_T 
radioRx(
int window_size);
 
  592         bool find(
const std::string str);
 
  624         std::string 
read(
int size);
 
  632         int write(std::string buffer);
 
RN2903_RESPONSE_T command(const std::string cmd)
Definition: rn2903.cxx:101
 
Generic API for the Microchip RN2903 LoRa Radio. 
 
virtual ~RN2903()
Definition: rn2903.cxx:50
 
void macSave()
Definition: rn2903.cxx:262
 
void setApplicationEUI(const std::string str)
Definition: rn2903.cxx:157
 
RN2903_JOIN_STATUS_T join(RN2903_JOIN_TYPE_T type)
Definition: rn2903.cxx:219
 
int write(std::string buffer)
Definition: rn2903.cxx:68
 
void setDeviceAddr(std::string str)
Definition: rn2903.cxx:185
 
int getMacStatusWord()
Definition: rn2903.cxx:252
 
void reset()
Definition: rn2903.cxx:283
 
void setApplicationSessionKey(std::string str)
Definition: rn2903.cxx:150
 
void setBaudrate(unsigned int baudrate)
Definition: rn2903.cxx:302
 
std::string getResponse()
Definition: rn2903.cxx:118
 
void getApplicationEUI()
Definition: rn2903.cxx:164
 
API for the Microchip RN2903 LoRa radio. 
Definition: rn2903.hpp:66
 
int getResponseLen()
Definition: rn2903.cxx:124
 
RN2903_RESPONSE_T radioRx(int window_size)
Definition: rn2903.cxx:235
 
void setFlowControl(RN2903_FLOW_CONTROL_T fc)
Definition: rn2903.cxx:309
 
void macSetBattery(int level)
Definition: rn2903.cxx:290
 
void setApplicationKey(const std::string str)
Definition: rn2903.cxx:171
 
std::string getRadioRxPayload()
Definition: rn2903.cxx:321
 
bool dataAvailable(unsigned int millis)
Definition: rn2903.cxx:90
 
RN2903_RESPONSE_T waitForResponse(int wait_ms)
Definition: rn2903.cxx:113
 
void setNetworkSessionKey(std::string str)
Definition: rn2903.cxx:143
 
std::string read(int size)
Definition: rn2903.cxx:55
 
void setDeviceEUI(const std::string str)
Definition: rn2903.cxx:129
 
std::string getHardwareEUI()
Definition: rn2903.cxx:240
 
void setResponseWaitTime(unsigned int wait_ms=RN2903_DEFAULT_RESP_DELAY)
Definition: rn2903.cxx:80
 
void updateMacStatus()
Definition: rn2903.cxx:245
 
void drain()
Definition: rn2903.cxx:95
 
RN2903_RESPONSE_T radioTx(const std::string payload)
Definition: rn2903.cxx:230
 
void getDeviceEUI()
Definition: rn2903.cxx:136
 
void macResume()
Definition: rn2903.cxx:276
 
void setDebug(bool enable)
Definition: rn2903.cxx:297
 
bool autobaud(int retries)
Definition: rn2903.cxx:331
 
void setResponse2WaitTime(unsigned int wait_ms=RN2903_DEFAULT_RESP2_DELAY)
Definition: rn2903.cxx:85
 
RN2903_RESPONSE_T commandWithArg(const std::string cmd, const std::string arg)
Definition: rn2903.cxx:106
 
void getDeviceAddr()
Definition: rn2903.cxx:192
 
void macPause()
Definition: rn2903.cxx:269
 
void getApplicationKey()
Definition: rn2903.cxx:178
 
RN2903_MAC_TX_STATUS_T macTx(RN2903_MAC_MSG_TYPE_T type, int port, std::string payload)
Definition: rn2903.cxx:224
 
std::string fromHex(const std::string src)
Definition: rn2903.cxx:209
 
std::string toHex(const std::string src)
Definition: rn2903.cxx:199
 
RN2903_MAC_STATUS_T getMacStatus()
Definition: rn2903.cxx:257
 
bool find(const std::string str)
Definition: rn2903.cxx:316
 
RN2903(unsigned int uart, unsigned int baudrate=RN2903_DEFAULT_BAUDRATE)
Definition: rn2903.cxx:34