class CoapNodeProvider
Utility object for instantiating a StackPeerBuilder<CoapEndpoint, BluetoothAddressNodeKey>
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> |
fun getNode(bluetoothAddress: String): Peer<*> |
|
fun removeNode(bluetoothAddress: String): Unit
Removes a node from the mapper, this will close the StackNode |