Search found 906 matches

by kevinkk525
Sun Sep 02, 2018 9:28 am
Forum: ESP8266 boards
Topic: Connect to Wifi
Replies: 6
Views: 1949

Re: Connect to Wifi

You might want to have a look at Peter's mqtt_as libraray which keeps the esp connected to wifi and mqtt and will automatically reconnect. You have to use uasyncio to use the library: https://github.com/peterhinch/micropython-mqtt
by kevinkk525
Wed Aug 29, 2018 5:26 pm
Forum: ESP8266 boards
Topic: How to use UART
Replies: 7
Views: 6232

Re: How to use UART

I used UART one for TX in one application and it works fine.
by kevinkk525
Fri Aug 24, 2018 5:36 pm
Forum: General Discussion and Questions
Topic: Remove imported module from RAM
Replies: 62
Views: 23303

Re: Remove imported module from RAM

Thanks for looking at it. Of course I'm calling gc.collect() many times after deleting a module. Sadly I was never able to get more than a few Bytes back, even if the module was a few kB.
by kevinkk525
Tue Aug 21, 2018 4:30 pm
Forum: General Discussion and Questions
Topic: Missing py file
Replies: 6
Views: 1499

Re: Missing py file

Sorry, I obviously did not read it correctly. Glad pythoncoder could help quickly.
by kevinkk525
Tue Aug 21, 2018 7:46 am
Forum: General Discussion and Questions
Topic: Missing py file
Replies: 6
Views: 1499

Re: Missing py file

you have to put them onto your device.
by kevinkk525
Fri Aug 17, 2018 7:49 am
Forum: General Discussion and Questions
Topic: network connect issue
Replies: 8
Views: 2306

Re: network connect issue

@pythoncoder: You are right about asyncio. As I'm trying to connect to WIFI before I even start the asyncio loop, I use it that way. If the wifi connection breaks down later on, then your mqtt_as library takes care of that asynchronously.
by kevinkk525
Thu Aug 16, 2018 7:09 pm
Forum: General Discussion and Questions
Topic: network connect issue
Replies: 8
Views: 2306

Re: network connect issue

Probably because they thought, that everyone knows, that a "busy loop" is always a bad idea and should never be used.
by kevinkk525
Thu Aug 16, 2018 3:36 pm
Forum: General Discussion and Questions
Topic: network connect issue
Replies: 8
Views: 2306

Re: network connect issue

I meant try this:

Code: Select all

while not sta_if.isconnected():
        time.sleep_ms(100)
by kevinkk525
Thu Aug 16, 2018 9:44 am
Forum: General Discussion and Questions
Topic: network connect issue
Replies: 8
Views: 2306

Re: network connect issue

try putting a sleep in the loop like time.sleep_ms(100).
by kevinkk525
Wed Aug 15, 2018 9:38 am
Forum: General Discussion and Questions
Topic: [SOLVED] UART.readline() not using timeout
Replies: 8
Views: 3236

Re: UART.readline() not using timeout

As he's using loboris port, I'm not sure the official docs apply to this.