Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/znitche/microhttp

minimal async HTTP client for micropython
https://github.com/znitche/microhttp

async http-client http-requests micropython

Last synced: 10 days ago
JSON representation

minimal async HTTP client for micropython

Awesome Lists containing this project

README

        

## microHTTP

minimal async HTTP client for micropython

### Local installation (for development)
```
python3 -m build --sdist
pip3 install dist/microhttp-.tar.gz
```

#### Microcontroller installation
#### Get package from GitHub release

1. Get `.zip` package (replace `` with release number, for instance `v1.0.1`)
```
wget -O microHTTP.zip https://github.com/zNitche/microHTTP/releases/download//microHTTP-.zip
```

2. Unpack archive and add its content to your project (don't forget to include it in `.gitignore`)
```
unzip microHTTP.zip
cp -r microHTTP /microHTTP
```

3. Flash microcontroller and you are good to go.

##### As a MicroPython frozen module
See Micropython [docs](https://docs.micropython.org/en/latest/reference/manifest.html#manifest).

in short copy `microHTTP` package to `[micropython_src_dir]/ports/rp2/modules` and run
```
make -C ports/rp2 BOARD=RPI_PICO_W
```

### Development
packages in `requirements.txt` are used for development / build

```
pip3 install -r requirements.txt
```

#### Remote Shell
for flashing pico you can use `rshell`
```
pip3 install rshell==0.0.32
```

enter REPL
```
rshell
repl
```

flash
```
rshell -f commands/flash
```

clear all files
```
rshell -f commands/wipe
```