Search found 9 matches

by jonaslorander
Wed Apr 17, 2019 6:50 pm
Forum: ESP8266 boards
Topic: [SOLVED] Issues connecting to WLAN after deep sleep
Replies: 2
Views: 241

Re: Issues connecting to WLAN after deep sleep

So I just solved this.
Turns out that if you deactivate the WLAN ( wlan.active(False) ) it is not possible, at least for me, to reconnect to a network after a deep sleep. When I commented out the deactivate, that I had just before entering deep sleep it all works.
by jonaslorander
Wed Apr 10, 2019 6:50 pm
Forum: ESP8266 boards
Topic: [SOLVED] Issues connecting to WLAN after deep sleep
Replies: 2
Views: 241

Re: Issues connecting to WLAN after deep sleep

I have made some more tests with different values for the second parameter of esp.deepsleep(). I've tested 0 (default) and 1 (make RF calibration on wake). But there is no difference.

Havn't anybody experienced this issue? And is it a problem with using wlan.connect(), will it wear out the flash?
by jonaslorander
Sun Apr 07, 2019 8:06 am
Forum: ESP8266 boards
Topic: [SOLVED] Issues connecting to WLAN after deep sleep
Replies: 2
Views: 241

[SOLVED] Issues connecting to WLAN after deep sleep

Hi, I'm having an issue with connecting to my WLAN after a deep sleep. I'm using MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266 Since the credentials are stored in flash, all I have to do to reconnect to the last AP should be import network wlan = network.WLAN(network.STA_IF) ...
by jonaslorander
Tue Jan 30, 2018 8:08 pm
Forum: Programs, Libraries and Tools
Topic: Some problems with asyn library
Replies: 21
Views: 4585

Re: asyn events — in basic uasyncio event loop; CPU usage

@pfalcon I understand your concern. I tend to chose my subject wording very carefully. However, this thread indeed took another turn along the way, which may give the wrong impressions about uasyncio on its own. I now changed the subject to attend to your concerns, whilst remaining as correctly inf...
by jonaslorander
Wed Dec 14, 2016 5:52 am
Forum: ESP8266 boards
Topic: [SOLVED/WORKAROUND]Unable to get DHT22-example to work
Replies: 5
Views: 4332

Re: Unable to get DHT22-example to work

I've made a few more discoveries, as you can read in my issue report at Github: https://github.com/micropython/micropython/issues/2651 (forgot to mention it here). To summarize, it seems that it only is the first call to measure() (yeah, I've noticed that it is missing from the methods of DHT22 as w...
by jonaslorander
Fri Nov 18, 2016 8:36 pm
Forum: ESP8266 boards
Topic: [SOLVED/WORKAROUND]Unable to get DHT22-example to work
Replies: 5
Views: 4332

Re: Unable to get DHT22-example to work

Ok, now this is interesting. After adding the DHT code to my main program, that sends the values over MQTT, it stopped working again. If I ran the main.py on boot it would not work, but if I run import main it does...! So I started playing around. And what I have now for this test, is this code in m...
by jonaslorander
Fri Nov 18, 2016 7:03 pm
Forum: ESP8266 boards
Topic: [SOLVED/WORKAROUND]Unable to get DHT22-example to work
Replies: 5
Views: 4332

Re: Unable to get DHT22-example to work

Thanks for you reply. I tested a few other pins, and pin 13 seems to be working, for now. So, at the moment, this works: import machine, dht d = dht.DHT22(machine.Pin(13)) d.measure() d.temperature(), d.humidity() And then I tried pin 4 again, and it works too now. Pin 15 does not work. Well well, l...
by jonaslorander
Thu Nov 17, 2016 9:08 pm
Forum: ESP8266 boards
Topic: [SOLVED/WORKAROUND]Unable to get DHT22-example to work
Replies: 5
Views: 4332

[SOLVED/WORKAROUND]Unable to get DHT22-example to work

Hi, I'm trying to use this code on a NodeMCU board with ESP-12E: import dht import machine import time d = dht.DHT22(machine.Pin(4, machine.Pin.IN, machine.Pin.PULL_UP)) while True: time.sleep(5) d.measure() d.temperature(), d.humidity() But all I get is this error on the d.measure() line: OSError: ...
by jonaslorander
Thu Nov 17, 2016 8:43 pm
Forum: ESP8266 boards
Topic: UMQTT - Can it support multiple publish statements?
Replies: 1
Views: 1020

Re: UMQTT - Can it support multiple publish statements?

Hi, I'm sending three values using three different publishes after each other. And I had the same problem, so I tried adding a short sleep before sending the next publish: mqttc.publish(TOPIC_DS1_T, "%3.2f" % ds1_t) time.sleep_ms(20) mqttc.publish(TOPIC_DHT1_T, "%3.2f" % dht1_t) time.sleep_ms(20) mq...