BLE Server on Nano (C++)

I am having a hard time finding a solution to being able to host a BLE server on the Jetson nano that can accept connections and then use that connection as a UART over BLE. I’d like to be able to pair an iPhone app that can then control the robot via BLE → Jetson nano, which then is communicating with all the subsystems for movement and telemetry.

I’ve looked at Bluez, etc and can pair my phone via bluetoothctl utility - but I need something that allows an app to connect without having to log into the Jetson. This may be a general c++/ble/bluez question but want to understand any examples others might have and if there are missing/conflicting frameworks on the Jetson/JP6.2

Thank you!

I can’t answer this due to never tried this use case before, suggest to do the reaserach by google first.

Oh I did research plenty on google first, that’s why I came here. I ended up wiring an HM-11 BLE module to the UART1 connections on the expansion header and able to address it via ttyTHS0.

The documentation for bluez is sorely lacking and while I was able to make connection, I didn’t want to waste anymore time.