Closed ennihimbeqa closed 1 year ago
Hi there,
the stream is never done, when you call the stopScan
method there are no more elements being scanned and therefore pushed into the stream
How can i send a data to bluetooth device? Example: 55 AA 00 02 23 00 30 19
initPermissions
to check if you have the right permissions to use this plugingetPairedDevices
startScan
to start scanning (I know, who'd have guessed, right ?) and listen to the onDeviceDiscovered
to get the devices as they come instopScan
connect
function providing the device mac address and the UUID of the service you want to connect to (serial, for example)onDeviceStatusChange
streamwrite
function passing in the message you want to send
OnDone doesn't get triggered, and if i make this method as a stream, it doesn't get canceled
return "Stream has been already set"