Discuss Scratch

New to Scratch
2 posts

Accessing Non-Advertised BLE Services for Extension

Currently trying to write a Scratch extension that requires accessing BLE Services that are not included in the device's advertising packet. If we change the firmware to advertise the needed services, everything works fine. However, is there a way to add the services to the “optionalServices” array when instantiating a new BLE session, and later access characteristics linked to these services, without having to explicitly advertise the services? From my understanding, adding the service UUIDs to “optionalServices” should accomplish this, but it does not.

Powered by DjangoBB

Standard | Mobile