Closed evhan55 closed 5 years ago
Sending a getServices request over BLE to Scratch Link will send a list of available services advertised by the peripheral, as documented here: https://github.com/LLK/scratch-link/blob/develop/Documentation/BluetoothLE.md#enumerating-services
getServices
A getServices request returns a Method not found error
Method not found
Mac, as discovered by @spectranaut
Seem to be missing implementation:
https://github.com/LLK/scratch-link/blob/develop/Windows/scratch-link/BLESession.cs#L135
https://github.com/LLK/scratch-link/blob/develop/macOS/Sources/scratch-link/BLESession.swift#L529
A reference: https://googlechrome.github.io/samples/web-bluetooth/discover-services-and-characteristics.html
Resolved via https://github.com/LLK/scratch-link/pull/123
Expected Behavior
Sending a
getServices
request over BLE to Scratch Link will send a list of available services advertised by the peripheral, as documented here: https://github.com/LLK/scratch-link/blob/develop/Documentation/BluetoothLE.md#enumerating-servicesActual Behavior
A
getServices
request returns aMethod not found
errorOperating System and Browser
Mac, as discovered by @spectranaut