This is a demo that illustrates a way to connect a micro:bit and a PC running the Chome web browser using the Web Bluetooth API and send/receive strings using the UART service .
You can get the code for micro:bit at https://makecode.microbit.org/_C06XuChrjRvs
Note: You have to open this Pen in the Debug Mode, since the Web Bluetooth doesn't work on cross-origin iframes.
WebBluetoothCG/web-bluetooth#180 https://bugs.chromium.org/p/chromium/issues/detail?id=518042&desc=2
A Pen by Shigeru Kobayashi on CodePen.