GoldenGateConnectionManager / com.fitbit.goldengate.node.stack / CoapNodeProvider

CoapNodeProvider

class CoapNodeProvider

Utility object for instantiating a StackPeerBuilder<CoapEndpoint, BluetoothAddressNodeKey>

Constructors

<init>

CoapNodeProvider(nodeMapper: NodeMapper = NodeMapper.instance, stackPeerBuilder: StackPeerBuilder<CoapEndpoint> = StackPeerBuilder(CoapEndpoint::class.java, PeerRole.Peripheral, CoapEndpointBuilder, DtlsSocketNetifGattlink()), bluetoothAddressNodeKeyProvider: (String) -> BluetoothAddressNodeKey = { BluetoothAddressNodeKey(it) })

Utility object for instantiating a StackPeerBuilder<CoapEndpoint, BluetoothAddressNodeKey>

Functions

getNode

fun getNode(bluetoothAddress: String): Peer<*>

removeNode

fun removeNode(bluetoothAddress: String): Unit

Removes a node from the mapper, this will close the StackNode