diff --git a/src/components/ble/DeviceInformationService.h b/src/components/ble/DeviceInformationService.h index c4babd1b..1fc8a180 100644 --- a/src/components/ble/DeviceInformationService.h +++ b/src/components/ble/DeviceInformationService.h @@ -6,6 +6,7 @@ #undef max #undef min #include "Version.h" +#include "BootloaderVersion.h" namespace Pinetime { namespace Controllers { @@ -24,6 +25,7 @@ namespace Pinetime { static constexpr uint16_t fwRevisionId {0x2a26}; static constexpr uint16_t hwRevisionId {0x2a27}; static constexpr uint16_t swRevisionId {0x2a28}; + static constexpr uint16_t bootloaderVersionId {0x2a2B}; static constexpr const char* manufacturerName = "PINE64"; static constexpr const char* modelNumber = "PineTime"; @@ -31,6 +33,7 @@ namespace Pinetime { static constexpr const char* serialNumber = "0"; static constexpr const char* fwRevision = Version::VersionString(); static constexpr const char* swRevision = "InfiniTime"; + static constexpr const char* bootloaderVersion = BootloaderVersion::VersionString(); static constexpr ble_uuid16_t deviceInfoUuid {.u {.type = BLE_UUID_TYPE_16}, .value = deviceInfoId}; @@ -46,6 +49,8 @@ namespace Pinetime { static constexpr ble_uuid16_t swRevisionUuid {.u {.type = BLE_UUID_TYPE_16}, .value = swRevisionId}; + static constexpr ble_uuid16_t bootloaderVersionUuid {.u {.type = BLE_UUID_TYPE_16}, .value = bootloaderVersionId}; + struct ble_gatt_chr_def characteristicDefinition[7]; struct ble_gatt_svc_def serviceDefinition[2]; };