Repository navigation
Libraries
github-actions[bot] edited this page Aug 28, 2026
·
1 revision
Generated page — do not edit here. The source of truth is
docs/LIBRARIES.mdin the repo, at commit5a41884. Edits made in the wiki are overwritten by the next publish, and a wiki page cannot be reviewed in the same diff as the code it describes.
Use these as implementation references, not as “copy Meshtastic into the woods.” Prefer small, auditable deps. Verified via GitHub API / known RAK docs / sibling forest-weather-machines work (2026-07-22).
| Layer | Choice | Why |
|---|---|---|
| LoRaWAN + sleep framework | beegee-tokyo/WisBlock-API-V2 (+ SX126x-Arduino underneath) | Built for RAK4631 event-driven Class A + low power |
| Alt LoRaWAN | RUI3 Arduino examples (RAK4631-R) | If we switch to RUI3 core SKU later |
| Modbus master | 4-20ma/ModbusMaster or emelianov/modbus-esp8266 (API patterns) | Timeouts; battle-tested |
| RAK9154 one-wire (alt) |
beegee-tokyo/RAK-OneWireSerial + Meshtastic RAK9154Sensor
|
Protocol already reverse-engineered |
| RAK9154 Modbus | Own thin client using map in FIRMWARE_SPEC | Already field-proven on Hub |
| WDT | adafruit/Adafruit_SleepyDog (nRF52 path) or Nordic WDT direct | Hard reset on hang |
| Payload | CayenneLPP / RAK standardized types | Matches existing TTN decoder |
- RAKWireless/WisBlock — official examples, RAK5802 samples, pin maps
- beegee-tokyo/SX126x-Arduino — SX1262 LoRaWAN/LoRa for Arduino (RAK4631 default stack)
- beegee-tokyo/WisBlock-API-V2 — event-driven API, AT, BLE, LoRaWAN, power-save
- beegee-tokyo/WisBlock-API — V1 predecessor; patterns still useful
- beegee-tokyo/WisBlock-Sensor-For-LoRaWAN — full sensor→LoRaWAN firmware example on RAK4631
- beegee-tokyo/WisBlock-Seismic-Sensor — woods-adjacent hardened sensor node example (Arduino + RUI3 variants)
- Kongduino/RUI3_RAK4631_LoRaWan_RAK1901_RAK12010 — RUI3 Class A sensor uplink pattern
- beegee-tokyo/RAK-OneWireSerial — SensorHub IPSO / half-duplex UART
-
meshtastic/firmware —
RAK9154Sensor.cpp(production-ish 9154 reader); also nRF52 solar brownout lessons (issue #9699) - meshtastic/firmware PR #4117 — RAK9154 bring-up history
- Sibling:
forest-weather-machines/rak-4-5-wire/— local Modbus map + clean-room one-wire POC (nanoc6-onewire-poll)
- 4-20ma/ModbusMaster — classic Arduino Modbus master
- arduino-libraries/ArduinoModbus — official; heavier
- emelianov/modbus-esp8266 — richest timeout/API patterns (port ideas to nRF52)
- Lora-net/LoRaMac-node — Semtech reference MAC (duty cycle, Class A state machine)
- mcci-catena/arduino-lmic — LMIC; US915 lessons; not first choice on SX1262 WisBlock
- mcci-catena/arduino-lorawan — friendlier LMIC wrapper
- TheThingsNetwork/lorawan-devices — device repo / codec patterns
- ElectronicCats/CayenneLPP — LPP encoder
- adafruit/Adafruit_SleepyDog — watchdog
- rocketscream/Low-Power — sleep patterns (AVR-oriented; ideas only on nRF52)
- disk91/WioLoRaWANFieldTester — field RF / margin testing mindset
- RAK forum: RAK4631 deep sleep / Serial1.end() — ~~must
Serial.end()before sleep or current stays ~mA~~ CORRECTED 2026-08-12: do not apply this to USBSerial.Adafruit_USBD_CDC::end()only callsclearConfiguration()— it does not stop theusbdtask, disableNRF_USBD, or release HFCLK, so it removes no current and does discard the descriptor the host enumerated. The USB peripheral is gated by VBUS, not bybegin()/end()(NRF_USBD->ENABLEis set only from the VBUS event handler,dcd_nrf5x.c:927), andTinyUSBDevice.detach()insrc/power.cpp:135is the correct lever. This line is still valid for the UARTSerial1, which is a different peripheral. See ADR-0008 and theCIT-RAK-LOWPOWERcontent correction in CITATIONS.md — this entry, read as applying to USB, is what justified a field build that was reverted the same day.
- adafruit/Adafruit_nRF52_Arduino — core often underlying WisBlock Arduino
- PlatformIO
nordicnrf52+ boardwiscore_rak4631— build system of record for this repo
- Full Meshtastic image (mesh ≠ our TTN weather contract)
- RAK13002 breakout as a substitute for RAK5802
- Unconfirmed Class C examples
Existing decoder: forest-weather-machines → payload/rak-wx-station-default.js (and standardized payload helpers). New device should emit types that decoder already understands unless a paired decoder PR ships.