From a701bbf4a76b1710681d198e6a7824d3f0f68e6e Mon Sep 17 00:00:00 2001 From: Abhijith Chatra Date: Fri, 3 Nov 2017 07:47:11 -0700 Subject: [PATCH] Removal of Chrome extension reference Updating documentation to reflect removal of Chrome extension --- docs/device/serial.md | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/docs/device/serial.md b/docs/device/serial.md index 1210da2f..7b175466 100644 --- a/docs/device/serial.md +++ b/docs/device/serial.md @@ -82,42 +82,3 @@ Alternative programs include `minicom` and so on. * Open a terminal * `ls /dev/cu.*` will return to you a list of serial devices; one of them will look like `/dev/cu.usbmodem1422` (the exact number depends on your computer) * `screen /dev/cu.usbmodem1422 115200` will open up the micro:bit's serial output. To exit, hit `Ctrl-A` `Ctrl-D`. - -### Chrome Extension - -### ~ hint - -**Developer Zone!** This is an experimental feature that may change in the future. This is not supported by MakeCode team. - -### ~ - -If you are using the Google Chrome browser, you can use our extension to get serial data streaming in the editor. - -* Install the [Extension for micro:bit](https://chrome.google.com/webstore/detail/extension-for-bbc-microbi/cihhkhnngbjlhahcfmhekmbnnjcjdbge?hl=en-US) on the Chrome Web Store. -* Restart Chrome and open the [web editor](@homeurl@) -* The serial data will show below the simulator - -If the extension is enabled, it will not be possible to access the port/device for the micro:bit from other programs than Chrome. - -### Custom Chrome Extensions - -### ~ hint - -**Developer Zone!** This is an experimental feature that may change in the future and requires understanding how to [build Chrome Extensions](https://developer.chrome.com/extensions/getstarted). - -### ~ - -You can use the ``chromeserial=CHROMEID`` query argument to load your own Chrome Extension in the editor. You can find the ChromeID in the list of extensions or the store URL. - -* see the sources of the [micro:bit extension](https://github.com/Microsoft/pxt-microbit/blob/master/clients/chrome/background.ts) -* the editor will try to connect a port named ``serial`` ([source](https://github.com/Microsoft/pxt-microbit/blob/master/clients/chrome/background.ts#L73)) -* data can be sent back to the editor as JSON payloads ([source](https://github.com/Microsoft/pxt-microbit/blob/master/clients/chrome/background.ts#L42)) - -```typescript-ignore -port.postMessage({ - type: "serial", - data: decodedString, - id: id - })); -} -```