Search found 101 matches

by kevinkk525
Fri Aug 17, 2018 7:49 am
Forum: General Discussion and Questions
Topic: network connect issue
Replies: 8
Views: 89

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: 89

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: 89

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: 89

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: 108

Re: UART.readline() not using timeout

As he's using loboris port, I'm not sure the official docs apply to this.
by kevinkk525
Sun Aug 12, 2018 7:26 pm
Forum: General Discussion and Questions
Topic: Are comments stripped out of code?
Replies: 4
Views: 132

Re: Are comments stripped out of code?

So you are too lazy to look at the micropython docs (or at least google it) but other people should not be too lazy to reply to your question?
by kevinkk525
Sat Aug 04, 2018 9:02 am
Forum: ESP8266 boards
Topic: Pin setup
Replies: 3
Views: 137

Re: Pin setup

You can use this dict I'm using to get the pin number with nodemcu: from micropython import const pins = {"D0": const(16), "D1": const(5), "D2": const(4), "D3": const(0), "D4": const(2), "D5": const(14), "D6": const(12), "D7": const(13), "D8": const(15), "D9": const(3), "D10": const(1)}
by kevinkk525
Thu Jul 26, 2018 4:17 pm
Forum: ESP8266 boards
Topic: [workaround used] esp8266 gets stuck periodically
Replies: 30
Views: 1199

Re: Asyncio gets stuck periodically

It very much seems to be vendor code that is blocking the execution of python code as all measuring methods turned up nothing. They actually made it even worse, stating that some socket operations took 70 minutes which was wrong as I got mqtt publications during that time.. However, uasyncio did not...
by kevinkk525
Thu Jul 26, 2018 4:10 pm
Forum: ESP32 boards
Topic: MicroPython - ESP32 - Is is possible to update files?
Replies: 12
Views: 384

Re: MicroPython - ESP32 - Is is possible to update files?

1) yes, you can download the prebuilt firmware on his repository and flash it.
1b) I have not heard of telnet outside of loboris fork
by kevinkk525
Wed Jul 25, 2018 2:07 pm
Forum: ESP32 boards
Topic: MicroPython - ESP32 - Is is possible to update files?
Replies: 12
Views: 384

Re: MicroPython - ESP32 - Is is possible to update files?

You could use the loboris fork for esp32 which has a ftp-server built-in which just has to be enabled. Then you can easily modify that file.

A different approach would be to get the value you have in the file by mqtt subscription.