getBattery method

List<int> getBattery()

获取电量 使用UUID(elinkWriteAndNotifyUuid: FFE3)的特征值写入 Write using the characteristic value of UUID(elinkWriteAndNotifyUuid: FFE3)

Implementation

List<int> getBattery() {
  final payload = [0x28];
  return ElinkCmdUtils.getElinkA6Data(payload);
}