Class HelperBleBackend

java.lang.Object
com.codename1.bluetooth.helper.HelperBleBackend
All Implemented Interfaces:
BleBackend

public class HelperBleBackend extends Object implements BleBackend

The real-radio BleBackend: drives the host machine's Bluetooth adapter through the bundled cn1-ble-helper subprocess (a Rust btleplug bridge -- CoreBluetooth on macOS, BlueZ on Linux, WinRT on Windows). Commands and events travel as line-delimited JSON over the helper's stdin/stdout; see Ports/JavaSE/native/cn1-ble-helper/PROTOCOL.md.

This class is transport-agnostic: the child process's standard I/O is reached only through a HelperTransport created by the injected HelperTransportFactory, so a host with an operating-system process API (the JavaSE simulator) and a host without it (the native Windows/Linux ports, reaching the subprocess through a native bridge) share this exact protocol, GATT and lifecycle logic. Nothing here references an OS process API or a shutdown hook -- the owner calls shutdown() on app exit.

btleplug is central-only: LE scanning and GATT client operations are supported; peripheral mode (GATT server / advertising), classic Bluetooth, L2CAP channels and bonding are not, and the corresponding capability queries report false.