mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* 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:
parent
55531993bd
commit
824f8c1349
5 changed files with 237 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue