iOS NRF mesh connection handling on app side

Hi,

I am developing a react native app with the iOS and Android NRF mesh lbrary. In this app I am handling connection, data receiving on characteristic and sending on write characteristic (after segmenting based on mtu).

For Android this was straight forward as it gave callbacks: getMtu(), onPduCreated(byte[] pdu), handleNotifications(byte[] pdu) and handleWriteCallbacks(byte[] pdu). This gave simple byte data to send and receive on the app side

In iOS example app though it was using GattBearer where writing to the characteristic happened inside the library itself and it required CBPeripheral object to work with.

How do I setup the iOS library to make it work similar to android. i.e. let it handle only the data and assembling the pdu. Actual BLE interaction letting the app handle it.

This is important since the ble setup is common code in the react native app and would prefer to keep it that way.

Parents
Reply
  • Hi Aleksander,

    Looks like ProxyProtocolHandler is exactly what I am looking for. Thanks a lot for that.

    Also when starting provisioning it expects a provisioning bearer. Does it not use the MeshNetworkManager.transmitter in that case? 

    I am guessing based on your response the answer to above is it does not use.

    Is it possible to have a common bearer object that can be assigned to both MeshNetworkManager.transmitter and provision function. Bearer seems to be extension of Transmitter so I think that should be possible

    I'm trying to bring the interface as close to android as possible

Children
Related