Search found 436 matches

by kevinkk525
Tue Sep 17, 2019 9:21 pm
Forum: General Discussion and Questions
Topic: Cannot set STA config after wakeup
Replies: 3
Views: 209

Re: Cannot set STA config after wakeup

I can't say why it doesn't work but I can say that I do not know why you disable the wifi before going to deep sleep. In deep sleep wifi is disabled anyway. And when it wakes up from deepsleep, the esp8266 will automatically reconnect.
by kevinkk525
Fri Sep 13, 2019 3:00 pm
Forum: Programs, Libraries and Tools
Topic: MQTT topic matcher
Replies: 0
Views: 51

MQTT topic matcher

Everyone working with mqtt will probably handle his subscriptions one way or another but we all need to check, which subscription the incoming topic matches. Until now I only supported multi-level wildcards because it was easy and I couldn't find an example that was fast enough on micropython (20ms ...
by kevinkk525
Thu Sep 12, 2019 9:01 am
Forum: General Discussion and Questions
Topic: Private const() variables aren't defined
Replies: 8
Views: 151

Re: Private const() variables aren't defined

I guess it makes sense although it is confusing in repl to have a different behaviour between const and strings.
by kevinkk525
Thu Sep 12, 2019 8:00 am
Forum: General Discussion and Questions
Topic: Private const() variables aren't defined
Replies: 8
Views: 151

Re: Private const() variables aren't defined

Ah sorry, I understood that part wrong. Thanks Peter. In that regard it does work as expected. I guess the initial question has been answered by jimmo however it is strange to me because why can I declare _B with a string but not with const (in repl)? Shouldn't the same explanation apply to this too...
by kevinkk525
Thu Sep 12, 2019 6:46 am
Forum: General Discussion and Questions
Topic: Private const() variables aren't defined
Replies: 8
Views: 151

Re: Private const() variables aren't defined

That is the theory. But in practice this is not true. I do very often use this in my code (although it is wrong): import foo print(foo._private_variable) And in the repl I can still use private variables, just not defined as const: >>> _B="hi" >>> _B 'hi' >>> _C=const(3) >>> _C Traceback (most recen...
by kevinkk525
Mon Sep 09, 2019 9:30 am
Forum: General Discussion and Questions
Topic: Does anybody know what is going on with micropython?
Replies: 6
Views: 371

Re: Does anybody know what is going on with micropython?

But even the forum is far from dead..
Many questions and projects in various hardware sections.
by kevinkk525
Sun Sep 08, 2019 9:16 am
Forum: ESP32 boards
Topic: How to format file system?
Replies: 4
Views: 99

Re: How to format file system?

i don't think that is possible. The esp can't erase itself.
Not sure it can erase the fat filesystem where you store your files but haven't heard of that either.
by kevinkk525
Sun Sep 08, 2019 9:00 am
Forum: ESP8266 boards
Topic: webrepl is not working?
Replies: 4
Views: 142

Re: webrepl is not working?

It is started automatically because those lines will get added to the boot.py
If that is not the case for you then you might have changed your boot.py or something similar.
by kevinkk525
Sun Sep 08, 2019 8:37 am
Forum: ESP32 boards
Topic: How to format file system?
Replies: 4
Views: 99

Re: How to format file system?

esptool.py --port /dev/ttyS3 erase_flash

Adapt your port of course.
You have to flash the firmware again afterwards.
by kevinkk525
Sat Sep 07, 2019 6:10 pm
Forum: ESP8266 boards
Topic: webrepl is not working?
Replies: 4
Views: 142

Re: webrepl is not working?

Strange, I have the same problem.. No error/debug output on the esp either.

But if you clone/download the webrepl repository to your desktop and open it from there then it works.