Search found 969 matches

by kevinkk525
Sun Feb 16, 2020 8:25 am
Forum: ESP32 boards
Topic: ESP32 and MQTT
Replies: 9
Views: 8661

Re: ESP32 and MQTT

Your code doesn't even connect to wlan?
by kevinkk525
Sat Feb 15, 2020 4:26 pm
Forum: Programs, Libraries and Tools
Topic: Asyncio design method
Replies: 7
Views: 4134

Re: Asyncio design method

wr300000 wrote:
Sat Feb 15, 2020 3:19 pm
@kevinkk525
I've just build and flash the latest uPython firmware on my ESP32 board but I still can not see uasyncio.py to import . Could you explain more on how can I get asyncio.py modules from ?
appreciate in advance,
https://github.com/peterhinch/micropyth ... UTORIAL.md
by kevinkk525
Tue Feb 11, 2020 11:07 am
Forum: Programs, Libraries and Tools
Topic: Asyncio design method
Replies: 7
Views: 4134

Re: Asyncio design method

1. I don't know any mqtt server for micropython. Best to use a Pi Zero
2. The official uasyncio should be in your firmware already.
3. You can put any module into that directory to save RAM.
by kevinkk525
Sun Feb 09, 2020 1:30 pm
Forum: ESP32 boards
Topic: Please,How do I solve the network problem?
Replies: 5
Views: 2307

Re: Please,How do I solve the network problem?

The log messages come from the ESP32 IDF. I think some of these messages can't be turned off due to bugs with the way the IDF log level checking works, but there is some control of this using esp.osdebug e.g. import esp esp.osdebug(esp.LOG_NONE) I don't normally use esp32 other than when I was work...
by kevinkk525
Sun Feb 09, 2020 11:07 am
Forum: ESP32 boards
Topic: Please,How do I solve the network problem?
Replies: 5
Views: 2307

Re: Please,How do I solve the network problem?

No, time.sleep() doesn't change the behaviour. It is just the recommended way. The messages in the repl are just debug messages, you can ignore them in your program. if you are writing to the repl, use wifi.active(False) to disable your wifi and they will go away. There should be a command for disab...
by kevinkk525
Sat Feb 08, 2020 3:29 pm
Forum: ESP32 boards
Topic: Please,How do I solve the network problem?
Replies: 5
Views: 2307

Re: Please,How do I solve the network problem?

Apparently it doesn't find your AP so it never connects?
Therefore it doesn't stop printing those messages, unless you issue wlan.active(False)

A small note, use this instead of a busy loop:

Code: Select all

while not wlan.isconnected():
            time.sleep_ms(50)
by kevinkk525
Sat Feb 01, 2020 6:24 am
Forum: General Discussion and Questions
Topic: How Should WiFi Passwords be securely stored on micropython device?
Replies: 15
Views: 16004

Re: How Should WiFi Passwords be securely stored on micropython device?

If someone has access to #2 then it won't really matter if the key is stored on the device or retrieved and stored in RAM. He could still get it, the effort just gets bigger.
by kevinkk525
Fri Jan 31, 2020 8:26 pm
Forum: ESP8266 boards
Topic: led.off() turns it on and vise versa??
Replies: 4
Views: 3780

Re: led.off() turns it on and vise versa??

Because the leds on those boards might be low active, therefore active when the pin is pulled to ground.
by kevinkk525
Fri Jan 31, 2020 8:25 pm
Forum: Programs, Libraries and Tools
Topic: Asyncio design method
Replies: 7
Views: 4134

Re: Asyncio design method

well if that's not helpful to you then maybe try to ask your question again with correct spelling because I don't understand 80% of it.
by kevinkk525
Fri Jan 31, 2020 8:24 pm
Forum: General Discussion and Questions
Topic: Connecting to AWS with MQTT
Replies: 39
Views: 41868

Re: Connecting to AWS with MQTT

Might want to try that to be sure the AWS IOT works as expected and doesn't need weird workarounds