Search found 435 matches

by kevinkk525
Fri Sep 13, 2019 3:00 pm
Forum: Programs, Libraries and Tools
Topic: MQTT topic matcher
Replies: 0
Views: 43

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

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

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

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

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

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

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

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

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.
by kevinkk525
Fri Sep 06, 2019 1:52 pm
Forum: General Discussion and Questions
Topic: Is there any way of uploading a .mpy file and execute it?
Replies: 3
Views: 112

Re: Is there any way of uploading a .mpy file and execute it?

On my esp32 I use an ftp server to upload new .mpy files. Then I restart it manually but you could implement something so that the device reboots itself to load the updated files.