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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user