getNiceManufacturerData method

String getNiceManufacturerData (Map<int, List<int>> data)

Implementation

String getNiceManufacturerData(Map<int, List<int>> data) {
  if (data.isEmpty) {
    return null;
  }
  List<String> res = [];
  data.forEach((id, bytes) {
    res.add(
        '${id.toRadixString(16).toUpperCase()}: ${getNiceHexArray(bytes)}');
  });
  return res.join(', ');
}