GoldenGateConnectionManager / com.fitbit.goldengate.node / MtuChangeRequester

MtuChangeRequester

class MtuChangeRequester

Class to request MTU change for a CONNECTED Node

Parameters

mtu - MTU request value

bluetoothAddress - bluetoothAddress of Node for which MTU change is requested

stack - stack for connected Node

Constructors

<init>

MtuChangeRequester(bluetoothAddress: String, stack: Stack, updateMtuTimeoutSeconds: Long = MTU_UPDATE_TIMEOUT_SECONDS, timeoutScheduler: Scheduler = Schedulers.computation())

Class to request MTU change for a CONNECTED Node

Functions

requestMtu

fun requestMtu(peer: BitGattPeer, mtu: Int): Single<Int>

Request to set MTU for bluetooth connection and stack for connected Node

updateStackMtu

fun updateStackMtu(mtu: Int): Single<Int>

Request to update Stack MTU