EspIdfPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • EspIdfPlatform
Implementers

Constructors

EspIdfPlatform()
Constructs a EspIdfPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkPermissions() Future<bool>
Check if required permissions are granted
connectDevice(String deviceId) Future<void>
Connect to a device
connectWiFiDevice(String deviceId) Future<void>
Connect to device via WiFi (SoftAP) This is used for SoftAP transport mode
createDevice({required String deviceName, required ESPTransportType transport, required ESPSecurityType security, String? proofOfPossession, String? username, String? softApPassword, String? primaryServiceUuid}) Future<String>
Create a device instance manually
disconnectDevice(String deviceId) Future<void>
Disconnect from a device
getConnectionStatusStream(String deviceId) Stream<ESPConnectionStatus>
Get device connection status stream
getProvisioningStatusStream(String deviceId) Stream<ESPProvisionStatus>
Get provisioning status stream
isBluetoothEnabled() Future<bool>
Check if Bluetooth is enabled
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
provisionDevice({required String deviceId, required String ssid, String? password}) Future<void>
Provision the device with Wi-Fi credentials
requestPermissions() Future<bool>
Request required permissions
scanQRCode({String? title, String? description, String? cancelButtonText}) Future<ESPQRCodePayload>
Scan QR code to get device provisioning information
scanWifiNetworks(String deviceId) Future<List<ESPWifiNetwork>>
Scan for available Wi-Fi networks
searchBleDevices(String prefix) Stream<ESPDevice>
Start searching for BLE devices with the given prefix Returns a stream of discovered devices
stopBleSearch() Future<void>
Stop searching for BLE devices
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance EspIdfPlatform
The default instance of EspIdfPlatform to use.
getter/setter pair