From 01a79942bf86ac9286596c3a2acb9cc1a1ed928c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Dietrich?= Date: Mon, 25 Nov 2024 11:27:23 +0100 Subject: [PATCH] Add execute option and meta information --- README.md | 5 ++++- index.html | 15 ++++++++++++--- webrepl.js | 2 +- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8c82964..c08b6f9 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,13 @@ To use this module, you need to have a MicroPython board with WebREPL enabled. Y https://edrys-labs.github.io/module-micropython-webrepl/ ``` -You can preset the WebSocket connection with the following station-configuration: +You can preset the WebSocket connection with the following station-configuration. +Additionally you can define a topic onto which the module will listen, thus if an external module publishes code under the following topic, then this code will be directly executed. +This is useful when using an editor with an execute procedure. ``` websocket: wss?://... +execute: topic ``` However, in most cases your MicroPython board will **NOT** be able to offer a secure wss connection, that is why you either need to install a browser-plugin at the Station-Browser. Or your run, the included [`proxy.py`](./proxy.py) script on a local machine, which will forward the WebSocket connection to the MicroPython board. diff --git a/index.html b/index.html index 7ae3409..c2fd268 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,11 @@ MicroPython WebREPL + +