import { type Bindings } from "https://deno.land/x/simpleble@v1.1.0/bindings.ts";
SimpleBLE bindings.
Methods
Deallocate the resources associated with an adapter.
Scan for timeout
milliseconds (blocks the main thread).
Returns a handle to a peripheral.
Returns the number of paired peripherals.
Returns a handle to a paired peripheral.
Register a callback for when the adapter begins scanning.
Register a callback for when the adapter stops scanning.
Register a callback for when the adapter changes.
Register a callback for when a peripheral is found.
Returns if the device is currently connected.
Returns if the device can be connected to.
Returns the number of services found.
Returns information about a device service.
Gets the number of manufacturer data maps available.
Returns the manufacturer's data.
Writes data to the device (without waiting for a response).
Regiser a callback for when an indication (notification) is received.
Regiser a callback for when a device notification is received.
Register a callback for when the device is connected.
Register a callback for when the device is disconnected.