Search found 10 matches

by gregsvo
Sun Jul 16, 2017 5:03 am
Forum: ESP8266 boards
Topic: umqtt.simple set_last_will() isn't working
Replies: 2
Views: 4383

umqtt.simple set_last_will() isn't working

umqtt.simple is working great in every way except set_last_will(). I can't seem to get it to work. Below is a portion of my code. My two questions are: 1) How do I get set_last_will() to actually set a last-will on my MQTT broker (mosquitto). 2) How would I test this? Just unplug the esp8266 and wat...
by gregsvo
Mon Nov 21, 2016 3:17 pm
Forum: General Discussion and Questions
Topic: What is making my LED's go yellow?
Replies: 7
Views: 7729

Re: What is making my LED's go yellow?

THANK YOU Pythoncoder and Platforma!

The update to 1.8.6 fixed the issue.
by gregsvo
Sun Nov 20, 2016 8:13 pm
Forum: ESP8266 boards
Topic: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error
Replies: 10
Views: 16008

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

To avoid this issue, you just need to set the correct flash size of your module when you flash the firmware. V1.8.6 is based on SDK 2.0.0 and flash size auto detection has been moved to esptool. Try this, before erase flash! esptool.py --port /dev/tty.SLAB_USBtoUART --baud 460800 write_flash --flas...
by gregsvo
Sun Nov 20, 2016 6:58 am
Forum: ESP8266 boards
Topic: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error
Replies: 10
Views: 16008

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

shaoziyang wrote:
Yes, if erase too fast (less than 1 sec), it maybe not erase completely. It will take 2-3 sec normal, you may run erase command again.
Any recommendations on how to slow down the erasing process, to avoid errors?
by gregsvo
Sat Nov 19, 2016 4:04 pm
Forum: ESP8266 boards
Topic: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error
Replies: 10
Views: 16008

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

shaoziyang wrote: You must erase flash before download.
esptool.py --port /dev/tty.SLAB_USBtoUART erase_flash
I'm sorry I didn't include that as part of the description - but yes, I'm erasing the flash before hand. Is there a possibility it's not erasing completely?
by gregsvo
Sat Nov 19, 2016 4:17 am
Forum: ESP8266 boards
Topic: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error
Replies: 10
Views: 16008

Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

I've been struggling to get 1.8.6 installed onto my nodemcu board. I downloaded 1.8.6, and ran this command: esptool.py --port /dev/tty.SLAB_USBtoUART --baud 460800 write_flash --flash_size=8m 0 esp8266-20161110-v1.8.6.bin It seems to flash the board correctly, but when I disconnect the board/reconn...
by gregsvo
Fri Nov 18, 2016 5:08 pm
Forum: General Discussion and Questions
Topic: What is making my LED's go yellow?
Replies: 7
Views: 7729

Re: What is making my LED's go yellow?

I haven't updated to 1.8.6 yet, but will give it a try today, and report back. Thanks!
by gregsvo
Wed Nov 16, 2016 1:44 pm
Forum: General Discussion and Questions
Topic: What is making my LED's go yellow?
Replies: 7
Views: 7729

Re: What is making my LED's go yellow?

...I would guess that it is some sort of timing issue with the data transfer. Can you speak more about this? I'm not sure where to start. The LED's go yellow on different codes as well, for example: import time, machine, neopixel number_of_leds = 60 np = neopixel.NeoPixel(machine.Pin(5), number_of_...
by gregsvo
Wed Nov 16, 2016 4:53 am
Forum: General Discussion and Questions
Topic: What is making my LED's go yellow?
Replies: 7
Views: 7729

What is making my LED's go yellow?

Here's my code: [code] import time, machine, neopixel, math number_of_leds = 60 np = neopixel.NeoPixel(machine.Pin(5), number_of_leds) def main(): while True: fade_in_out(red_val=256, green_val=256, blue_val=256) # white def fade_in_out(red_val, green_val, blue_val): for i in range(256): r = math.ce...
by gregsvo
Wed Oct 26, 2016 3:05 am
Forum: ESP8266 boards
Topic: WifiManager Script Template
Replies: 6
Views: 10934

Re: WifiManager Script Template

I'm confused about how to fire this up. I created 2 files, main.py, and networkconfig.py. Inside of main.py: import networkconfig networkconfig.start() Inside of networkconfig.py: The code contained in your repo. When restarted, my micropython access point appears, but I'm not sure what to do next. ...