getManufacturerData static method
Implementation
static List<int> getManufacturerData(Map<int, List<int>> data) {
return data.entries
.map((entry) {
List<int> manufacturerData = ElinkCmdUtils.intToBytes(entry.key, length: 2);
List<int> results = List.empty(growable: true);
if (manufacturerData[0] == 0x6E && manufacturerData[1] == 0x49) {
results.addAll(manufacturerData);
results.addAll(entry.value);
}
return results;
})
.expand((element) => element)
.toList();
}