Repository navigation
v0.16.0
Oriel 0.16.0
Oriel apps can advertise over Bluetooth LE: oriel.bluetooth sends a
beacon nearby devices see, from Zig or the page, on every platform.
Added
oriel.bluetooth: Bluetooth LE advertising, a beacon nearby devices
see (docs/bluetooth.md). The same API on every platform, with
capabilities()saying what each stack can send; a field the device
can't send iserror.Unsupported, never dropped. Starts, failures and
platform stops come later as the advertisement's state
(onAdvertiseState, the page'sbluetooth:advertiseevent). On when
the app declares.permissions.bluetooth(or-Dbluetooth); the page
getsoriel.bluetooth.capabilities(),advertise(ad)andstop(id).- Android and ChromeOS: BluetoothLeAdvertiser, every field (tested on a
Chromebook's ARC, one advertisement at a time there). - Linux: BlueZ over the system bus, every field (tested on a BlueZ
adapter). - macOS and iOS: CBPeripheralManager, service UUIDs and the device name
(Apple can't advertise service data);advertisewhile the
permission is undecided shows the prompt (tested on macOS 15). - Windows: BluetoothLEAdvertisementPublisher, service UUIDs and service
data, no device name (not yet tested on a Windows machine).
- Android and ChromeOS: BluetoothLeAdvertiser, every field (tested on a