readCharacteristic method
Reads a Characteristic of a Service
Implementation
Future<String?> readCharacteristic(
QualifiedCharacteristic characteristic,
) async {
try {
List<int> result = await LogbotBleManager()
.interactor
.readCharacteristic(characteristic);
String value = String.fromCharCodes(result);
return value;
} catch (e) {
LogbotLogger().error(
title: "ApiClient.readCharacteristic()", message: e.toString());
rethrow;
}
}