BLE is now secured to require pairing with PIN

This commit is contained in:
geeksville
2020-02-07 20:59:21 -08:00
parent 0c0d4025f1
commit 593a6e6f83
6 changed files with 214 additions and 88 deletions

View File

@@ -31,6 +31,7 @@
#include "MeshService.h"
#include "GPS.h"
#include "screen.h"
#include "NodeDB.h"
#ifdef T_BEAM_V10
#include "axp20x.h"
@@ -66,6 +67,8 @@ void doDeepSleep(uint64_t msecToWake)
// Put radio in sleep mode (will still draw power but only 0.2uA)
service.radio.sleep();
nodeDB.saveToDisk();
#ifdef RESET_OLED
digitalWrite(RESET_OLED, 1); // put the display in reset before killing its power
#endif