Search found 11 matches

by jbar
Thu Feb 10, 2022 4:48 am
Forum: Programs, Libraries and Tools
Topic: Microdot error
Replies: 0
Views: 10123

Microdot error

When running an example from the microdot_asyncio module I get the following error. Only change I made to the example code was to replace the example code from 'import asyncio' to 'import uasyncio as asyncio'. Traceback (most recent call last): File "/lib/microdot_asyncio.py", line 245, in dispatch_...
by jbar
Fri Feb 04, 2022 3:34 am
Forum: ESP32 boards
Topic: REPL via wifi access, during main.py execution
Replies: 9
Views: 24345

Re: REPL via wifi access, during main.py execution

Thanks @bulletmark, I'll give your suggestions a try. I see you're from Brisbane. My most fond memory of Australia was getting to work briefly at the US Navy VLF (very low frequency) transmitter site in Exmouth, Australia. Exmouth is in the NW corner. Very cool setup, VLF is used to transmit to subm...
by jbar
Wed Feb 02, 2022 4:10 am
Forum: ESP32 boards
Topic: REPL via wifi access, during main.py execution
Replies: 9
Views: 24345

Re: REPL via wifi access, during main.py execution

@jbar, what you have above seems fine so what you are actually running must be different. Copy the second example code here to main.py on your ESP32. Make sure you set up wifi (e.g in boot.py) and then reset. You should be able to connect to the IP address of the ESP32 on port 5000 and see Hello Wo...
by jbar
Thu Jan 27, 2022 3:24 am
Forum: General Discussion and Questions
Topic: How to run Microdot webframework
Replies: 2
Views: 7809

Re: How to run Microdot webframework

Nico were you able to get your Microdot program to run? I'm trying to do something similar - turn relays on/off depending on temperature. I've got the relay control part programmed, but having issues using Microdot; as you said there are very few examples out there. If you could share your Microdot ...
by jbar
Thu Jan 13, 2022 2:19 am
Forum: ESP32 boards
Topic: REPL via wifi access, during main.py execution
Replies: 9
Views: 24345

Re: REPL via wifi access, during main.py execution

@jbar, the microdot framework I referred to is first class quality. It is created by Michael Grinberg who is a renowned Python/Flask developer so we are very lucky he has contributed this package to the MicroPython community. You can use it in threaded or asyncio modes. I use it for my own asyncio ...
by jbar
Mon Jan 10, 2022 5:42 pm
Forum: ESP32 boards
Topic: REPL via wifi access, during main.py execution
Replies: 9
Views: 24345

Re: REPL via wifi access, during main.py execution

OP, the REPL is really for development use, not for your application. E.g. I use the Wifi REPL to copy my python and data files remotely to my devices (all around my house) and to watch diagnostic output as my program is running. For what you want to do, I would use an asyncio app which reads and w...
by jbar
Fri Jan 07, 2022 5:09 am
Forum: General Discussion and Questions
Topic: Problems running two activities in while True loop.
Replies: 2
Views: 5926

Re: Problems running two activities in while True loop.

My answer to a recent similar post is appropriate to you also. Tried Asyncio, as you referred me to in other post. Actually for micropython it's uasyncio. Very neat module, and it works well on functions that complete themselves. ie no wait forever for acivity...like someone loading a webpage. As s...
by jbar
Wed Jan 05, 2022 4:28 pm
Forum: General Discussion and Questions
Topic: Problems running two activities in while True loop.
Replies: 2
Views: 5926

Problems running two activities in while True loop.

Working to program an ESP32, to control a greenhouse fan by monitoring temperature and setting a relay to on/off as needed. Also want to be able to view webpage within my LAN showing temperature and fan (relay) status. For the webpage generation I'm using some code from a random nerd tutorial that p...
by jbar
Wed Jan 05, 2022 3:24 am
Forum: Programs, Libraries and Tools
Topic: paralel functions
Replies: 2
Views: 15393

Re: paralel functions

I don't have the answer but am interested in knowing the answer, hopefully someone answer your question..
by jbar
Mon Jan 03, 2022 2:00 am
Forum: General Discussion and Questions
Topic: hardware i2c deprecated
Replies: 13
Views: 65508

Re: hardware i2c deprecated

Roberthh wrote:
Sat Jan 01, 2022 3:26 pm
You did not tell which board you use. Is it an ESP32? Or RPi Pico? And you could show the error message which you get.
The following message pops up in the shell:
Warning: I2C(-1, ...) is deprecated, use SoftI2C(...) instead

I'm using an ESP32.