Rename device identity from DigiRadio to igiRadio
SoftAP SSID, Bluetooth name, and mDNS hostname now use the "igiRadio" prefix (igiRadio-<serial>, igiradio-<serial>.local), matching the iOS app's name instead of the firmware project's repo name. Confirmed live: igiradio-CC4DB4.local resolves, the old digiradio-CC4DB4.local no longer does. Also adds the app-side briefs/notes accumulated today (active_source, volume contract, VU-meter polling, RDS availability) as a single up-to-date file to hand to Cursor. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -18,9 +18,9 @@ namespace core {
|
||||
namespace {
|
||||
|
||||
constexpr std::string_view kSerialUnknown = "unknown";
|
||||
constexpr std::string_view kSoftApFallback = "DigiRadio-setup";
|
||||
constexpr std::string_view kBluetoothFallback = "DigiRadio";
|
||||
constexpr std::string_view kHostnameFallback = "digiradio";
|
||||
constexpr std::string_view kSoftApFallback = "igiRadio-setup";
|
||||
constexpr std::string_view kBluetoothFallback = "igiRadio";
|
||||
constexpr std::string_view kHostnameFallback = "igiradio";
|
||||
|
||||
[[nodiscard]] std::string prefixed(std::string_view prefix,
|
||||
std::string_view suffix)
|
||||
@@ -44,9 +44,9 @@ DeviceIdentity DeviceIdentity::fromEui48(Eui48 eui)
|
||||
const std::string suffix = eui.shortSuffix();
|
||||
return DeviceIdentity(eui,
|
||||
eui.serialNumber(),
|
||||
prefixed("DigiRadio-", suffix),
|
||||
prefixed("DigiRadio-", suffix),
|
||||
prefixed("digiradio-", suffix));
|
||||
prefixed("igiRadio-", suffix),
|
||||
prefixed("igiRadio-", suffix),
|
||||
prefixed("igiradio-", suffix));
|
||||
}
|
||||
|
||||
bool DeviceIdentity::isKnown() const noexcept
|
||||
|
||||
@@ -52,13 +52,13 @@ namespace {
|
||||
if (!expectEqual(identity.serialNumber(), "0004A3123456")) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
if (!expectEqual(identity.softApSsid(), "DigiRadio-123456")) {
|
||||
if (!expectEqual(identity.softApSsid(), "igiRadio-123456")) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
if (!expectEqual(identity.bluetoothName(), "DigiRadio-123456")) {
|
||||
if (!expectEqual(identity.bluetoothName(), "igiRadio-123456")) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
if (!expectEqual(identity.hostname(), "digiradio-123456")) {
|
||||
if (!expectEqual(identity.hostname(), "igiradio-123456")) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
@@ -74,13 +74,13 @@ namespace {
|
||||
if (!expectEqual(identity.serialNumber(), "unknown")) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
if (!expectEqual(identity.softApSsid(), "DigiRadio-setup")) {
|
||||
if (!expectEqual(identity.softApSsid(), "igiRadio-setup")) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
if (!expectEqual(identity.bluetoothName(), "DigiRadio")) {
|
||||
if (!expectEqual(identity.bluetoothName(), "igiRadio")) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
if (!expectEqual(identity.hostname(), "digiradio")) {
|
||||
if (!expectEqual(identity.hostname(), "igiradio")) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
|
||||
@@ -41,7 +41,7 @@ public:
|
||||
* @brief setupDefault — factory for the Slice 1 setup SoftAP.
|
||||
*
|
||||
* @dname setupDefault
|
||||
* @return SoftApConfig with SSID DigiRadio-setup.
|
||||
* @return SoftApConfig with SSID igiRadio-setup.
|
||||
* @pubstate none
|
||||
*
|
||||
* @author Michele Bigi
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
namespace net {
|
||||
|
||||
namespace {
|
||||
constexpr std::string_view kSetupSsid = "DigiRadio-setup";
|
||||
constexpr std::string_view kSetupSsid = "igiRadio-setup";
|
||||
constexpr std::uint8_t kSetupChannel = 1;
|
||||
constexpr std::uint8_t kSetupMaxConnections = 4;
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user