Search found 500 matches

by kevinkk525
Mon Nov 11, 2019 7:41 am
Forum: ESP8266 boards
Topic: Counting pulses from an electricity meter
Replies: 9
Views: 207

Re: Counting pulses from an electricity meter

The micropython-iot library however has been tested at high speed. I did run many tests without any delays, at least my fork with my server implementation.. But I would expect the server version of Peter to have no problem with that either. On the client side 4Hz however is quite a high rate. It onl...
by kevinkk525
Sun Nov 10, 2019 10:52 am
Forum: General Discussion and Questions
Topic: littlefs - advantages & disadvantages
Replies: 8
Views: 223

Re: littlefs - advantages & disadvantages

There was a PR for esp32 and I noticed the commits for esp8266. Not sure any other platform supports it yet. from flashbdev import bdev import uos uos.VfsLfs2.mkfs(bdev) vfs = uos.VfsLfs2(bdev) These are the changes I made to the module inisetup.py to make usage of littelfs default. As soon as you f...
by kevinkk525
Sat Nov 09, 2019 6:55 am
Forum: ESP32 boards
Topic: Set Pins values synchroniously
Replies: 22
Views: 413

Re: Set Pins values synchroniously

Would it be possible to change the API to accept tuples of pin number and pin value?
So you could call it like:

Code: Select all

write_multi((14,0),(5,1),(0,1))
Or would that not feel more natural?
by kevinkk525
Sat Nov 09, 2019 6:50 am
Forum: General Discussion and Questions
Topic: How do i fix "OSError: [Errno 110] ETIMEDOUT" on this code?
Replies: 1
Views: 76

Re: How do i fix "OSError: [Errno 110] ETIMEDOUT" on this code?

Does it happen every time you try to synchronize the time? On my devices syncing the time often fails at first try. If that happens I make it retry 5 seconds later. Typically that is enough but occasionally it needs more retries, on one device it recently logged 38 consecutive attempts until it actu...
by kevinkk525
Sat Nov 09, 2019 6:46 am
Forum: General Discussion and Questions
Topic: littlefs - advantages & disadvantages
Replies: 8
Views: 223

Re: littlefs - advantages & disadvantages

the "little" is the main advantage for me :D The esp8266 gets 4kB more free RAM when using it, so I made it the default right away!

Apart from that I "heard" it should be more robust than FAT but can't tell anything about that.
by kevinkk525
Thu Nov 07, 2019 11:31 am
Forum: Programs, Libraries and Tools
Topic: Smarthome firmware pysmartnode
Replies: 18
Views: 2867

Smarthome firmware pysmartnode 6.0.0, major Component rework

Pysmartnode got a major update to version 6.0.0 introducing a sensor component offering a unified API and features, making developing and using sensors easy. Also a new component: Climate (that's the homeassistant term, it's a mqtt controllable heating controller) https://github.com/kevinkk525/pysma...
by kevinkk525
Thu Nov 07, 2019 11:11 am
Forum: Programs, Libraries and Tools
Topic: Understanding uasyncio and mqtt_as
Replies: 1
Views: 48

Re: Understanding uasyncio and mqtt_as

Yes that would be the most basic approach to your case. Should you plan on doing something more complicated (which calls asyncio.sleep()) than just toggling a LED, you should create a task for that operation and include the publish. Otherwise you will block mqtt. I use a very similar mechanism at th...
by kevinkk525
Mon Nov 04, 2019 1:30 pm
Forum: ESP8266 boards
Topic: No webrepl with deactivated SSL/TLS (Hashlib missing sha1)
Replies: 6
Views: 129

Re: No webrepl with deactivated SSL/TLS (Hashlib missing sha1)

Thanks a lot jimmo, that does indeed work!
by kevinkk525
Mon Nov 04, 2019 10:22 am
Forum: General Discussion and Questions
Topic: Properly checking for errors during a WiFi connection?
Replies: 6
Views: 248

Re: Properly checking for errors during a WiFi connection?

If the user wants to know why the initial wifi connection fails, he can check it himself. The mqtt_as library will raise an Exception on "client.connect()" if the wifi connection can't be established.
Therefore there is no need for an interrupt.
by kevinkk525
Mon Nov 04, 2019 7:22 am
Forum: ESP8266 boards
Topic: No webrepl with deactivated SSL/TLS (Hashlib missing sha1)
Replies: 6
Views: 129

Re: No webrepl with deactivated SSL/TLS (Hashlib missing sha1)

Thanks for the link, somehow I missed that thread in my research.. So apparently my changes do nothing and I'm just luky my changes to the heap size work without crashing the device. Good to know.. Have to wait for littleFS on esp8266 to get 4kB back safely. I did try compiling firmware with your ch...