Firmware version
State
Hmkit version
Declaration
getHmKitVersion()
Discussion
HMKit version
Example
val state:FirmwareVersion.State
assertTrue(state.hmKitVersion.value?.major == 1)
assertTrue(state.hmKitVersion.value?.minor == 15)
assertTrue(state.hmKitVersion.value?.patch == 33)
// HMKit version is 1.15.33
Hmkit build name
Declaration
getHmKitBuildName()
Discussion
HMKit version build name
Example
val state:FirmwareVersion.State
assertTrue(state.hmKitBuildName.value == "btstack-uart")
// Build name is 'btstack-uart'
Application version
Declaration
getApplicationVersion()
Discussion
Application version
Example
val state:FirmwareVersion.State
assertTrue(state.applicationVersion.value == "v1.5-prod")
// Application version is 'v1.5-prod'
Getters
Get firmware version
Declaration
public GetFirmwareVersion()
public GetFirmwareVersion(byte... propertyIdentifiers)
Example
// get all properties
val getState = GetFirmwareVersion()
// get hmkitVersion and hmkitBuildName properties
val getStateProperties = GetFirmwareVersion(0x01, 0x02)