* companion radio for RAK (USB) now fixed. (thanks to Bernd Giesecke)

* experimental NRF52 impl of SerialBLEInterface, and experimental RAK BLE companion radio target
This commit is contained in:
Scott Powell 2025-02-12 18:40:00 +11:00
parent 55531993bd
commit 824f8c1349
5 changed files with 237 additions and 1 deletions

View file

@ -741,7 +741,8 @@ public:
#endif
#elif defined(NRF52_PLATFORM)
#ifdef BLE_PIN_CODE
#error "BLE not defined yet"
#include <helpers/nrf52/SerialBLEInterface.h>
SerialBLEInterface serial_interface;
#else
#include <helpers/ArduinoSerialInterface.h>
ArduinoSerialInterface serial_interface;
@ -806,6 +807,14 @@ void setup() {
#if defined(NRF52_PLATFORM)
InternalFS.begin();
#ifdef BLE_PIN_CODE
serial_interface.begin("MeshCore", BLE_PIN_CODE);
#else
pinMode(WB_IO2, OUTPUT);
serial_interface.begin(Serial);
#endif
serial_interface.enable();
the_mesh.begin(InternalFS, serial_interface, trng);
#elif defined(ESP32)
SPIFFS.begin(true);