BLE GATT Client

If you are asking a question, please follow this template:

  1. My goal is: Receive data from aws iot thing and write the data to peripheral device using ble client
  2. My actions are: I could not see a proper example to implement the ble client but for ble server there are examples
  3. The result I see is: [show the result - log, etc]- NA
  4. My expectation & question is:

I want to receive data in the ESP 32 through MQTT - aws IOT and find and write characteristics to the BLE peripheral. I tried https://github.com/nkolban/esp32-snippets/issues but it was not reliable and the connectToServer was failing intermittently after multiple attempts with different changes.

Finally, I gave up the idea and started using the mongoose os but later could see that the BLE GATT Client write is not implemented in mjs in mongoose os. https://github.com/mongoose-os-libs/bt-common/blob/master/mjs_fs/api_bt_gattc.js . It says write not implemented for now and TODO

I can see the GATT Client is implemented in https://github.com/mongoose-os-libs/bt-common/blob/master/src/esp32/esp32_bt_gattc.c But there are no examples available to try it. Can someone help me if they have a working example of ble gatt client read/write working with mongooseOS? It would be really helpful for me