getLastStatus method

  1. @Deprecated('Use discoverEndpoints() + the capability-specific getters instead.')
Future<bool?> getLastStatus()

Gets the last status of this device using the original name-based heuristic (occupancy/PIR -> bitmap cluster, door/contact -> boolean cluster, else -> on/off cluster).

Implementation

@Deprecated('Use discoverEndpoints() + the capability-specific getters instead.')
Future<bool?> getLastStatus() async {
  final GoogleMatterFlutter googleMatterFlutterPlugin = GoogleMatterFlutter();

  return await googleMatterFlutterPlugin.getDeviceData(
    deviceId,
    deviceName,
  );
}