getManufacturerNameString method
Get the manufacturer name string of the device.
Implementation
Future<String?> getManufacturerNameString() async {
if (_manufacturerNameString == null) {
_log.warning(
"Manufacturer Name String characteristic not found on device");
return null;
}
List<int> bytes = await _manufacturerNameString!.read();
String manufacturerNameString = String.fromCharCodes(bytes);
return manufacturerNameString.toString();
}