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

https://github.com/pappz/ota-promoter-py

Over the air MicroPython application update tool for ESP8266 type microcomputer. With this tool you can track and you can publish the changed files from your developer PC to your microchips via HTTP.
https://github.com/pappz/ota-promoter-py

micropython-esp8266 ota python

Last synced: 4 months ago
JSON representation

Over the air MicroPython application update tool for ESP8266 type microcomputer. With this tool you can track and you can publish the changed files from your developer PC to your microchips via HTTP.

Awesome Lists containing this project

README

        

# Ota-promoter-py

This is a python client implementation for ota-promoter server service.
With this tool you can update your MicroPython project on your running
devices. For more details visit [ota-promoter-server](https://github.com/pappz/ota-promoter)

I tested this tool on ESP-8266 device.

## Example usage

```python
import otapromoter
from machine import reset

def ota_check():

try:
promoter = otapromoter.OTAPromoter('http://192.168.0.10:9090')
if promoter.check_and_update():
reset()
except otapromoter.OTAException as e:
print(e)
return
except OSError as e:
print(e)
return

if __name__ == '__main__':
ota_check()
```