Add EEPROM EUI-48 device identity across firmware and API.

Read the factory 24AA025E48 serial after ADAU I2C boot, derive SoftAP SSID, BT name, STA hostname, and expose serialNumber on GET /api/health with graceful fallbacks.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-07 09:00:38 +02:00
co-authored by Cursor
parent 11ad6b43ad
commit cd94e36a9d
35 changed files with 999 additions and 83 deletions
+13
View File
@@ -13,6 +13,7 @@
#pragma once
#include "core/CompanionChipStatus.hpp"
#include "core/DeviceIdentity.hpp"
#include "bt1035/Bt1035Driver.hpp"
@@ -124,6 +125,18 @@ public:
* @date 2026-07-06
*/
[[nodiscard]] static bt1035::Bt1035Driver& bt1035Driver();
/**
* @brief deviceIdentity — per-board identity from the 24AA025E48 EUI-48.
*
* @dname deviceIdentity
* @return Reference to identity loaded during boot().
* @pubstate reads gDeviceIdentity after boot(); unknown() on EEPROM failure.
*
* @author Michele Bigi
* @date 2026-07-07
*/
[[nodiscard]] static const core::DeviceIdentity& deviceIdentity() noexcept;
};
} // namespace hardware