apidocs / com.nimmsta.core.android.bluetooth / BLEScanResult / <init>

<init>

BLEScanResult(mContext: Context, mScanResult: ScanResult, scanner: NIMMSTADeviceScanner, connectionCode: ConnectionCode? = null, timeFound: DateTime = DateTime.now())

BLE Scan Result represents a scanned bluetooth device from an Android BLE Scanner, e.g. NIMMSTABLEScanner. It provides APIs to connect to the Device as a NIMMSTA Device: createDevice and then call NIMMSTADevice.connectAsync.

Parameters

mContext - the Android Context

mScanResult - the Android ScanResult

scanner - the NIMMSTADeviceScanner that found this device.

connectionCode - the ConnectionCode related to this device

timeFound - the time when the device was found

shouldCreateHidDevice - defines whether to create a connection as HIDDevice or as normal device, see NIMMSTAHidDeviceImpl for more details.

Author
NIMMSTA Team

Copyright
NIMMSTA GmbH & IBPG 2020

License
NIMMSTA GmbH