{"version":"1.0","type":"rich","title":"Gist ae2b5fc0e438fd62bd0ab56bc35904d6","description":"This example demonstrates a Unity-based Bluetooth connection test that scans for bonded devices, attempts to open a serial RFCOMM socket, and sends a short command string. The code uses the `brab.bluetooth` library to access the Android BluetoothAdapter, enumerate bonded devices via `getBondedDevices()`, and create a socket with `createRfcommSocketToServiceRecord()`. It logs each step—device discovery, socket creation, connection, and data transmission—to both the Unity console and a UI Text element, while trimming old log lines after 32 entries. The visible behavior is limited to connection setup and a single write; no incoming data reading is shown.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-ae2b5fc0e438fd62bd0ab56bc35904d6?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}