Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reteprelleum/webserver

WebServer for Micropython wirh Python executable
https://github.com/reteprelleum/webserver

esp32 micropython python3 webpython webserver

Last synced: 9 days ago
JSON representation

WebServer for Micropython wirh Python executable

Awesome Lists containing this project

README

        

# WebServer

Web server for Micropython tested an ESP32 and Python 3.7 with support for the execution of Python code

1 the call http://esp32.home/eval?8/4 returns 2.

2 the call http://esp32.home/exec?print('hallo') prints hallo in the stdout.

3 in the called html document the mark is replaced by the return value. xxx is any python expression.

4 in the called html document the mark is replaced by ''''. xxx is any python expression.

## Example:

time related functions




Convert a time expressed in seconds since the Epoch





The number of seconds, as an integer, since the Epoch





$(document).ready(function () {
$("button").click(function () {
$.get("exec?machine.Pin(5,machine.Pin.OUT).value(0)", function (data, status) {
alert("Data: " + data + "\nStatus: " + status);
});
});
});

led on at ESP32 lolin pro