Search found 417 matches

by kevinkk525
Mon Aug 19, 2019 6:03 pm
Forum: General Discussion and Questions
Topic: Can I take data from Arduino with micropython esp8266 and upload it to my web server??
Replies: 2
Views: 89

Re: Can I take data from Arduino with micropython esp8266 and upload it to my web server??

There are surely several ways to achieve what you are trying to do. You can send your Arduino data via UART, I2C, OneWire, ... Micropython can do it all. You just have to read the data and upload it to your server, that is very simple. I wrote a library myself that reads pin values from an arduino c...
by kevinkk525
Tue Jul 30, 2019 5:00 pm
Forum: ESP32 boards
Topic: Resilient aysnchronous MQTT optimim use
Replies: 14
Views: 457

Re: Resilient aysnchronous MQTT optimim use

Sorry but with this code I'm starting to doubt your experience (at least in regards of python). You should be able to find the mistakes yourself but I'll give you a hint anyways as you might have misunderstood some underlying concepts (which are the same as in python..): The queue will always be emp...
by kevinkk525
Sun Jul 28, 2019 9:17 pm
Forum: ESP32 boards
Topic: Resilient aysnchronous MQTT optimim use
Replies: 14
Views: 457

Re: Resilient aysnchronous MQTT optimim use

I can see a case where that happens. You send a message every second. The Esp32 needs 30-100ms to receive a message, then waits 1 second to toggle the led off again. With a publish stetement in the coroutine even 20-50ms longer. So it is very likely that it receives a new message before the coroutin...
by kevinkk525
Sun Jul 28, 2019 5:32 pm
Forum: ESP32 boards
Topic: Resilient aysnchronous MQTT optimim use
Replies: 14
Views: 457

Re: Resilient aysnchronous MQTT optimim use

Quite a lot of questions, I try to answer all that I remember but be kind as I'm answering from my phone and the answers might be quite short [emoji6] What kind of lag do you see when you run your code? A lag of 50ms is quite possible but you wouldn't see that unless you measure it. How are you send...
by kevinkk525
Sat Jul 27, 2019 5:34 pm
Forum: ESP8266 boards
Topic: A "resilient" asynchronous MQTT client
Replies: 18
Views: 4924

Re: A "resilient" asynchronous MQTT client

Could you please create a new thread with your problem? Makes it easier. Commenting out the publish routine doesn't really solve the problem of queue overflow as that should only take 50ms tops. You have a wait 1 second command in there, so if you get many messages, that will be the bottleneck. How ...
by kevinkk525
Sat Jul 27, 2019 6:36 am
Forum: ESP8266 boards
Topic: A "resilient" asynchronous MQTT client
Replies: 18
Views: 4924

Re: A "resilient" asynchronous MQTT client

It's not a problem with the library, it's either how you use it or you running into microcontroller limitations. I'm using that library since a long time now and have no problems. However you need to be aware of the limitations. In the range example you posted on raspberrypiforum there is a coroutin...
by kevinkk525
Fri Jul 19, 2019 6:35 pm
Forum: General Discussion and Questions
Topic: Neo pixel
Replies: 5
Views: 195

Re: Neo pixel

As for home-assistant integration I can recommend my own project which has this specific goal, to connect an esp to home-assistant and even provide mqtt discovery so you don't have to configure each component in home-assistant. https://github.com/kevinkk525/pysmartnode However you'll have to write y...
by kevinkk525
Fri Jul 19, 2019 6:29 pm
Forum: General Discussion and Questions
Topic: keep wifi and umqttsimple "alive"? (beginner question)
Replies: 7
Views: 221

Re: keep wifi and umqttsimple "alive"? (beginner question)

Maybe you'll find my project useful which is a smart home framework using mqtt and made for home-assistant with mqtt discovery (no config needed in home-assistant) . I use a bell myself and have multiple nodemcu that flash their LEDs and sound a buzzer as my bell was not loud enough. It should be si...
by kevinkk525
Tue Jul 16, 2019 1:23 pm
Forum: ESP32 boards
Topic: main.py does not appear to working after boot
Replies: 47
Views: 1042

Re: main.py does not appear to working after boot

You didn't ask any question so what should we say about it? It's a valid method to update your main.py...

Edit: Ah right, the question is in your title only. Please show the main.py, has it ever worked?
by kevinkk525
Tue Jul 16, 2019 1:22 pm
Forum: ESP8266 boards
Topic: Remove '\x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00' files?
Replies: 8
Views: 315

Re: Remove '\x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00' files?

This does however not apply to the ESP8266 unless that's a new feature I have never heard of.