-
Notifications
You must be signed in to change notification settings - Fork 52
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
MICROBIT_BLE_UTILITY_SERVICE_PAIRING
defaults for MakeCode & MicroPython
#354
Comments
Does this means the Data Logger extension needs to be modified to set both MICROBIT_BLE_UTILITY_SERVICE_PAIRING and MICROBIT_BLE_UTILITY_SERVICE to 1, maybe here:
Or should those definitions be added to the flashlog extension? That should work because... MICROBIT_BLE_UTILITY_SERVICE_PAIRING is checked when MICROBIT_BLE_UTILITY_SERVICE is checked when If the service should always be present when the Bluetooth extension is added, even if Data Logger is not, then perhaps the Bluetooth extension also needs to be modified to set both MICROBIT_BLE_UTILITY_SERVICE_PAIRING and MICROBIT_BLE_UTILITY_SERVICE to 1. At the moment the CODAL service code is compiled when DEVICE_BLE is 1, like all other services. Do we need to wrap it in additional conditions, so it's only compiled when it might be used? |
These examples use Project Settings/Edit Settings As text to add the definitions to a Data Logger project in different ways. It seems the first one doesn't work while the second does, but I'm not sure because MakeCode doesn't always adjust to changes (microsoft/pxt-microbit#4378) unless I do something like switch between Radio and Bluetooth. Each example has an additional extension cpptest that dumps the configs to serial. https://makecode.microbit.org/_edXacK9CFKeR
https://makecode.microbit.org/_b2FMMwcY4e8E
|
Right now the For the next pxt release with the current CODAL we are enabling the This is way was done to avoid using the extra resources when datalogging is not used in MakeCode, which can be controlled via the presence of the datalog extension. However we don't have a way to to determine if a CODAL user programme uses the feature until compile time, at which point it might be late to enable the flags for the rest of CODAL, like the pairing/bluetooth mode. For MicroPython builds we can control the flag for the pairing/bluetooth mode in the codal.json file, so either default is fine. |
Conclusion:
|
Change of plans 😓 Basically MakeCode guards agains the pxt core and an extension having different values for the config flags. Rather than request this feature to MakeCode let's change the approach to be able to complete this quickly. So, we'll need to do the following:
As all CODAL related actions are done I'll close this as completed 🎉 |
For MakeCode:
For MicroPython:
If the data logging storage is empty, the utility service should be able to indicate that.
The text was updated successfully, but these errors were encountered: