refreshFirmwareVersion method
Implementation
Future<void> refreshFirmwareVersion() async {
final version = await bleManager.sendCommand<VersionReply>(
VersionBleCommandTx(),
);
if (version == null || version.hasErrors) {
return;
}
_setData(
(data) => data.copyWith(
firmwareVersion: '${version.major}.${version.minor}.${version.patch}',
),
);
}