Upload files to "BLE_server_values"
This commit is contained in:
parent
70195d8948
commit
c8d84b3842
@ -1,3 +1,6 @@
|
||||
#include <WiFi.h>
|
||||
#include "esp_system.h"
|
||||
#include "esp_wifi.h"
|
||||
#include <NimBLEDevice.h>
|
||||
|
||||
#define SERVICE_UUID "12345678-1234-5678-1234-56789abcdef0"
|
||||
@ -39,6 +42,18 @@ void setup() {
|
||||
Serial.begin(115200);
|
||||
delay(1000);
|
||||
|
||||
uint8_t mac[6];
|
||||
|
||||
// Bluetooth MAC (ESP32-C3 uses BLE only)
|
||||
esp_read_mac(mac, ESP_MAC_BT);
|
||||
Serial.printf("Bluetooth MAC Address : %02X:%02X:%02X:%02X:%02X:%02X\n",
|
||||
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
||||
|
||||
// WiFi MAC using high-level API (should match STA)
|
||||
Serial.println("\nWiFi.macAddress() : " + WiFi.macAddress());
|
||||
|
||||
delay(4000);
|
||||
|
||||
Serial.println("Initializing BLE Server...");
|
||||
|
||||
// Initialize BLE
|
||||
|
Loading…
x
Reference in New Issue
Block a user