-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to receive micro: bit uartWriteString with startNotifications #192
Comments
Can a user only experience this with a custom extension? |
Yes. I made another extension. It is scratch-microbit extension with the UUID changed to UART. |
Are these correct? |
Yes, please see code of scratch extension const BLEUUID = { this._ble.read(BLEUUID.service, BLEUUID.rxChar, true, this._onMessage) scratch-vm/src/io/BLE.js read (serviceId, characteristicId, optStartNotifications = false, onCharacteristicChanged = null) { write (serviceId, characteristicId, message, encoding = null, withResponse = null) { |
Expected Behavior
Hope to be able to receive with _onMessage (base64)
Actual Behavior
_onMessage (base64) is not called
Steps to Reproduce
const BLEUUID = {
service: '6e400001-b5a3-f393-e0a9-e50e24dcca9e', // UART_SERVICE
rxChar: '6e400002-b5a3-f393-e0a9-e50e24dcca9e', // TX_Characteristic
txChar: '6e400003-b5a3-f393-e0a9-e50e24dcca9e' // RX_Characteristic
};
this._ble.read(BLEUUID.service, BLEUUID.rxChar, true, this._onMessage);
Operating System and Browser
Windows 10 Home 20H2 (19042.867)
Google Chrome 89.0.4389.90(Official Build)(64 bit)
NOTE:
Bluetooth Developer Studio Level 3 Profile Report
TX Characteristic
Notify Excluded
Indicate Mandatory
scratch-link/Windows/scratch-link/BLESession.cs
private async Task StartNotifications(GattCharacteristic endpoint, string encoding)
Can be received by changing "Notify" to "Indicate"
The text was updated successfully, but these errors were encountered: