gatewayConnection

fun gatewayConnection(deviceID: DeviceID, bluetoothMacAddress: BluetoothMacAddress, password: String = ""): GatewayConnection

Creates and configures a GatewayConnection instance for a non-legacy Efento gateway. This method prepares the parameters required for establishing a connection, but does not initiate the connection itself. Use this for gateways where the Gateway.isLegacy flag is false.

Return

GatewayConnection implementation used connect, disconnect and run commands on Efento device.

Parameters

deviceID

unique identifier of device returned in scanning.

bluetoothMacAddress

device bluetooth mac address.

password

gateway password which is used to exchange data with encrypted gateway. Can be updated via GatewayConnection.password