update deps

also arduino doesn't set its name for some reason??
This commit is contained in:
2023-02-02 16:14:02 +01:00
parent cd0fb99c37
commit 6db163229d
7 changed files with 3853 additions and 5296 deletions

View File

@@ -3,7 +3,7 @@
// Door switch pin
#define SWITCH_PIN 2
const char *name = "Arduino";
BLEService switchService("1811"); // BLE Switch Service
// BLE Switch Characteristic - custom 128-bit UUID, read by central
@@ -25,7 +25,8 @@ void setup()
pinMode(SWITCH_PIN, INPUT);
// set advertised local name and service UUID:
BLE.setLocalName("Nano 33 BLE");
BLE.setDeviceName(name);
BLE.setLocalName(name);
BLE.setAdvertisedService(switchService);
// add the characteristic to the service