Skip to content

Commit 54146f1

Browse files
committed
Expose Lora modem getters
1 parent 5cca5c1 commit 54146f1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Arduino_LoRaConnectionHandler.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@ class LoRaConnectionHandler : public ConnectionHandler
3939
virtual int read() override;
4040
virtual bool available() override;
4141

42+
inline String getVersion() { return _modem.version(); }
43+
inline String getDeviceEUI() { return _modem.deviceEUI(); }
44+
inline int getChannelMaskSize(_lora_band band) { return _modem.getChannelMaskSize(band); }
45+
inline String getChannelMask() { return _modem.getChannelMask(); }
46+
inline int isChannelEnabled(int pos) { return _modem.isChannelEnabled(pos); }
47+
inline int getDataRate() { return _modem.getDataRate(); }
48+
inline int getADR() { return _modem.getADR(); }
49+
inline String getDevAddr() { return _modem.getDevAddr(); }
50+
inline String getNwkSKey() { return _modem.getNwkSKey(); }
51+
inline String getAppSKey() { return _modem.getAppSKey(); }
52+
inline int getRX2DR() { return _modem.getRX2DR(); }
53+
inline uint32_t getRX2Freq() { return _modem.getRX2Freq(); }
54+
inline int32_t getFCU() { return _modem.getFCU(); }
55+
inline int32_t getFCD() { return _modem.getFCD(); }
4256

4357
protected:
4458

0 commit comments

Comments
 (0)