esp32-lightbar/src/main.py

13 lines
186 B
Python
Raw Normal View History

from microdot_asyncio import Microdot
2021-12-28 22:10:27 +01:00
app = Microdot()
2021-12-28 22:10:27 +01:00
@app.route('/')
async def index(request):
return 'Meow, world\n'
2021-12-28 22:10:27 +01:00
print('[main] Running Microdot app...')
app.run(port=80)