stm32duino / STM32LoRaWAN

Arduino library to support LoRaWAN communication using the STM32WL series.
https://stm32duino.github.io/STM32LoRaWAN/
Other
37 stars 7 forks source link

Work-in-progress preview version #1

Closed matthijskooijman closed 2 years ago

matthijskooijman commented 2 years ago

This PR has an initial preview version of the library. Everything is still very much incomplete, but the contour of the library and the structure is starting to become visible already (except for the main STM32LoraWAN class, where the code is just put down somewhere and most of it should probably be moved and/or structured).

Commits that are unfinished are marked with "WIP", see their commit messages about what parts are still in progress.

There are still some minor licensing issues with these files (as well as the 1.2.0 release being zip-only and not on github so far). Also, this PR needs a private version of the STM32Duino core as well, which includes updated CMSIS and HAL drivers, and also some changes by me. See https://github.com/stm32duino/Arduino_Core_STM32_WL/pull/2

matthijskooijman commented 2 years ago

I updated this PR (by amending/forcepushing the commits). This now has working OTAA, ABP does not seem to be working yet (nothing received on TTN, so probably some encryption problem).

As discussed, I've moved log/error output to use core_debug(), so don't forget to enable log output.

I've also cleaned up the configuration setting and getting code a bit, the previous version had a lot of code duplication which is not very much reduced (the code isn't super-pretty, but good enough, I think).

As before, plenty of TODOs, but a lot of the code is already getting into good shape.

Comments welcome!

matthijskooijman commented 2 years ago

I'm closing this PR, in favor of a to-be-created new PR with a slightly more customer-ready preview version.