gateway Legacy Connection
fun gatewayLegacyConnection(deviceID: DeviceID, bluetoothMacAddress: BluetoothMacAddress, password: String = ""): GatewayLegacyConnection
Creates and configures a GatewayConnection instance for a 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 true.
Return
GatewayConnection implementation used connect, disconnect and run commands on Efento device.
Parameters
device ID
unique identifier of device returned in scanning.
bluetooth Mac Address
device bluetooth mac address.
password
gateway password which is used to exchange data with encrypted gateway. Can be updated via GatewayConnection.password