Skip to content
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

datalogger: Add CODAL flags to enable BLE service with extension. #5346

Merged
merged 2 commits into from
Nov 10, 2023

Conversation

microbit-carlos
Copy link
Collaborator

@microbit-carlos microbit-carlos commented Sep 7, 2023

This PR adds a couple of CODAL flags to the data logging extension, so that the Utility service is enabled when bluetooth is enabled. Similarly to the Events Service.
This Utility Service is used by the iOS app to fetch and display the data logging data in the app.

Test deployment:

Due to this issue this PR doesn't work, so setting as a draft PR until it is resolved:

@microbit-carlos microbit-carlos marked this pull request as ready for review November 8, 2023 13:49
@microbit-carlos
Copy link
Collaborator Author

microbit-carlos commented Nov 8, 2023

I've rebased this branch and changed the flags workaround issue #5352.

Test deployment: https://makecode.microbit.org/app/bb83e4999507cac72d1e23434c8d8f8bf73c8ef1-34e6ba055c
without settings switch: https://makecode.microbit.org/app/99a7323da08df36c07e783c31a7754df4b79446d-0f10ccf6bd

@martinwork would you be able to test this with the app?
There is also a switch to disable the service in the project settings, if you could test that as well.

Thanks!

…o issue #5352.

Due to issue #5352
the flags set up only for CODAL don't work correctly.

The issue will be fixed in the future, but as a workaround we can
set the flag for both DAL and CODAL, even if this is a V2 only
feature.

Also removes the user config switch, as it didn't work and we
prefer having less options.
The flag can always be manually changes in the pxt.json file.
@microbit-carlos
Copy link
Collaborator Author

@abchatra this has been tested by @martinwork and ready to be merged 👍

@abchatra abchatra requested a review from riknoll November 9, 2023 19:23
@abchatra
Copy link
Collaborator

abchatra commented Nov 9, 2023

@riknoll can you review this change?

@microbit-carlos
Copy link
Collaborator Author

Apologies for the rush, but ideally we'd like to have this release as soon as possible, to be able to access the datalog from the iOS app for a specific event. Would it be possible to prioritise this? Thank you!

@abchatra abchatra merged commit f686dd2 into master Nov 10, 2023
6 checks passed
@abchatra abchatra deleted the datalog-ble branch November 10, 2023 21:50
abchatra pushed a commit that referenced this pull request Nov 10, 2023
)

* datalogger: Add CODAL flags to enable BLE service with extension.

* datalogger: Change flags from CODAL-only to both DAL and CODAL, due to issue #5352.

Due to issue #5352
the flags set up only for CODAL don't work correctly.

The issue will be fixed in the future, but as a workaround we can
set the flag for both DAL and CODAL, even if this is a V2 only
feature.

Also removes the user config switch, as it didn't work and we
prefer having less options.
The flag can always be manually changes in the pxt.json file.
@abchatra
Copy link
Collaborator

I have released the fix to live.

@microbit-carlos
Copy link
Collaborator Author

Thanks @abchatra, I appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants