mirror of
https://github.com/usatiuk/door-thing.git
synced 2025-10-27 03:27:48 +01:00
update deps
also arduino doesn't set its name for some reason??
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user