errorCode property

BleShieldNativeErrorCode? errorCode
final

Classification of the error. null on success and where the platform reports no code at all: Windows, Linux and Web, and (usually) a disconnect requested by the app. A code the plugin does not recognise is BleShieldNativeErrorCode.unknownError, not null. Connection related values:

A connection attempt that never succeeds is always BleShieldNativeErrorCode.connectionFailed: Apple reports it through didFailToConnect; on Android it arrives as a disconnect, and the plugin classifies it by whether the link had reached STATE_CONNECTED.

Implementation

final BleShieldNativeErrorCode? errorCode;