reason

Parameters

reason

why the disconnect occurred. DisconnectReason.Unknown when the platform doesn't provide status information (e.g. JavaScript) or when the disconnect was synthesised locally without a GATT callback.