using library

This commit is contained in:
2025-11-12 20:19:18 +00:00
parent 9b65139b70
commit 747a7a4766
2 changed files with 15 additions and 1 deletions

View File

@@ -1,13 +1,27 @@
#include <Arduino.h>
#include <BLEOTA.h>
#include <BLE2902.h>
#include <BLEDevice.h>
#include <BLEServer.h>
#include "pins.h"
#define BLINKRATE 500
#define BLE_SERVER_NAME "Software Release"
long lastBlink = 0;
BLEServer* pServer = NULL;
void setup() {
pinMode(LED, OUTPUT);
BLEDevice::init(BLE_SERVER_NAME);
pServer = BLEDevice::createServer();
BLEota.begin(pServer);
}
void loop() {