microsoft / pxt-microbit

A Blocks / JavaScript code editor for the micro:bit built on Microsoft MakeCode
https://makecode.microbit.org
Other
711 stars 589 forks source link

bluetooth problem #5336

Closed crouse12 closed 1 year ago

crouse12 commented 1 year ago

If I upload following hex, my computer can find my microbit via bluetooth without clicking any button. This hex is download from network, I think this hex may be generated from old version makecode. https://drive.google.com/file/d/19yKI5Vb0cWwgfDmLuoh12RclIHTZDmzL/view?usp=drive_link image

However, if I use version 6.0.17 makecode to generate hex, and then upload to my microbit. My computer cannot find microbit via bluetooth. https://makecode.microbit.org/_Dy2MiM3Ra0C1 image

I don't know why the new makecode cannot provide the same feature.

martinwork commented 1 year ago

I suspect this might be related to https://github.com/microsoft/pxt-microbit/issues/4378

Both examples have "no pairing required" in Project Settings. When I generated a hex from the second example, it seemed to behave correctly, but I can easily believe that changing to no pairing required didn't make it build with the right flags.

I haven't yet figured out a trick to guarantee a correct build, One possibility:

crouse12 commented 1 year ago

Your method can solve the bluetooth flag problem.

crouse12 commented 1 year ago

@abchatra Does pxt-microbit not correct this error?

abchatra commented 1 year ago

I thought this was dupe of #4378. If not let me know I will reopen.

crouse12 commented 1 year ago

@abchatra

4378 shows the option "Passkey pairing" cannot work.

However, I show that the option "No Pairing Required" cannot work. I hope this error can be corrected, since people usually set the "Passkey pairing" flag after importing bluetooth extension.

image