-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #290 from mcci-catena/issue286
TTN V3 compatibility patch
- Loading branch information
Showing
93 changed files
with
2,311 additions
and
507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,14 @@ Copyright notice: | |
|
||
#include <Arduino_LoRaWAN_network.h> | ||
|
||
static_assert( | ||
! ARDUINO_LORAWAN_VERSION_COMPARE_LT( | ||
ARDUINO_LORAWAN_VERSION, | ||
ARDUINO_LORAWAN_VERSION_CALC(0, 9, 0, 1) | ||
), | ||
"ARDUINO_LORAWAN_VERSION must be at least 0.9.0-1" | ||
); | ||
|
||
namespace McciCatena { | ||
|
||
class CatenaStm32L0 : public CatenaStm32 | ||
|
@@ -94,7 +102,7 @@ class CatenaStm32L0 : public CatenaStm32 | |
// In future versions, this might change; some STM32L0 implementations | ||
// might not have a crystal so LSE won't work. But for now, we assume | ||
// that there's a crystal for LSE. | ||
#if defined(_mcci_arduino_version) | ||
#if defined(_mcci_arduino_version) | ||
# if _mcci_arduino_version >= _mcci_arduino_version_calc(2,4,0,90) | ||
static constexpr bool kUsesLSE = true; // _mcci_arduino_version indicates that LSE clock is used. | ||
# else | ||
|
@@ -146,13 +154,17 @@ class CatenaStm32L0::LoRaWAN : public Arduino_LoRaWAN_network, | |
virtual bool GetOtaaProvisioningInfo( | ||
Arduino_LoRaWAN::OtaaProvisioningInfo * | ||
) override; | ||
virtual void NetSaveFCntUp(uint32_t uFCntUp) override; | ||
virtual void NetSaveFCntDown(uint32_t uFCntDown) override; | ||
virtual void NetSaveSessionInfo( | ||
const SessionInfo &Info, | ||
const uint8_t *pExtraInfo, | ||
size_t nExtraInfo | ||
) override; | ||
virtual void NetSaveSessionState( | ||
Arduino_LoRaWAN::SessionState const &State | ||
) override; | ||
virtual bool NetGetSessionState( | ||
Arduino_LoRaWAN::SessionState &State | ||
) override; | ||
|
||
// | ||
// TODO([email protected]) -- the following are not used but are always | ||
|
Oops, something went wrong.