I'm not sure that I understand the configuration. Is the UART connected to the Android device?
When my B4A app on the Android device starts, it set BT on, search for the peripherie-module BLE RN4871, and connect.
Now I can send what-ever from my Android device to the BLE RN4871, that will stream this data to the serial-terminal-port of my PC or MCU, both works fine...
The only thing is, my app on the Android device is not receiving what I send trough BLE RN4871 from serial-terminal-port of my PC or MCU...
Public MLDP_PRIVATE_SERVICE As String = "49535343-fe7d-4ae5-8fa9-9fafd205e455" 'works for RN-BLE RN4871, write to pc
Public MLDP_DATA_PRIVATE_CHAR As String = "49535343-8841-43f4-a8d4-ecbe34729bb3" 'works for RN-BLE RN4871, write to pc
Set notify does not have a error
Dim D() As Byte = msgPkt.GetBytes("UTF8")
delay(125) '125 sending multiple back to back packets fails without this delay.
manager.WriteData(MLDP_PRIVATE_SERVICE, MLDP_DATA_PRIVATE_CHAR, D) 'this works
delay(125)
manager.SetNotify(MLDP_PRIVATE_SERVICE,"49535343-4c8a-39b3-2f49-511cff073b7e" , True) 'NO ERROR
Log("end write")
Only a few hints if you have the time, thanks for answering...
Claude