Search found 180 matches

by davef
Thu Mar 04, 2021 6:33 am
Forum: ESP32 boards
Topic: ESP32, Gmail's SMTP server and uMail woes
Replies: 0
Views: 40

ESP32, Gmail's SMTP server and uMail woes

For the last 6 months I have tried sending probably several hundred logs and a failure pattern has started to emerge. For some reason I latched on to 465 with SSL as the most successful but decided to give 587 without SSL. That didn't work so tried going back to 465 and now that wouldn't work. I era...
by davef
Wed Mar 03, 2021 7:27 am
Forum: General Discussion and Questions
Topic: async versus sync
Replies: 4
Views: 120

Re: async versus sync

I had a closer look at your resilient code but to be honest I have never used a thread or written anything asynchronous. It looks like a serious bit of work, one that would be a challenge to get this guy's head around. At the moment I get a reliable WiFi connection, NTP time acquisition and access t...
by davef
Mon Mar 01, 2021 5:46 pm
Forum: General Discussion and Questions
Topic: async versus sync
Replies: 4
Views: 120

Re: async versus sync

Thank you Peter for taking the time to provide a helpful explanation. Error trapping is one issue, handling the errors without doing a machine.reset() is my current focus.
by davef
Sun Feb 28, 2021 10:42 pm
Forum: General Discussion and Questions
Topic: async versus sync
Replies: 4
Views: 120

async versus sync

Think I have finally come across a useful explanation of why I had to sprinkle some utime.sleep() calls when doing some things internet related. From https://blog.miguelgrinberg.com/post/micropython-and-the-internet-of-things-part-iv-wi-fi-and-the-cloud A Wi-Fi connection can take a few seconds to b...
by davef
Fri Feb 26, 2021 7:07 pm
Forum: ESP32 boards
Topic: esp32 speific features
Replies: 1
Views: 68

Re: esp32 speific features

Are you aware that glenn20 has provided firmware images for ESP-NOW:
https://github.com/glenn20/micropython-espnow-images

I have tested both the EP8266 and ESP32 images. I can understand trying to cram more into a ESP8266 could be an issue, but would it be a problem for the ESP32?
by davef
Thu Feb 25, 2021 9:40 pm
Forum: Programs, Libraries and Tools
Topic: uMail - A lightweight SMTP client for MicroPython
Replies: 33
Views: 11619

Re: uMail - A lightweight SMTP client for MicroPython

Hi ScotsDon, Get any further? Do you know how to log assert errors in umail? I have also tried: try: smtp = umail.SMTP('smtp.gmail.com', 465, ssl=True) except AssertionError as error: try: with open('errors.txt', 'a') as outfile: outfile.write(str(error) + '\n') except OSError: print('oops') but nev...
by davef
Thu Feb 25, 2021 12:58 am
Forum: ESP32 boards
Topic: WLAN.ifconfig(
Replies: 8
Views: 177

Re: WLAN.ifconfig(

Sorry, I don't know the reason ... I saw it somewhere when I had the same problem and it fixed it. I recall it has something to do with tuples.
by davef
Wed Feb 24, 2021 10:02 pm
Forum: ESP32 boards
Topic: WLAN.ifconfig(
Replies: 8
Views: 177

Re: WLAN.ifconfig(

Try:

Code: Select all

sta_if.ifconfig(('192.168.10.99', '255.255.255.0', '192.168.10.1', '192.168.10.1'))
Double brackets
by davef
Wed Feb 24, 2021 6:24 am
Forum: General Discussion and Questions
Topic: Build problem, include library?
Replies: 7
Views: 556

Re: Build problem, include library?

jimmo,

Thanks for the response but a lot of water has gone under the bridge since then. I realised that what I was trying to do ... eventually talk to a 3G dongle over USB using a "Black Pill" was too much for this guy.
by davef
Wed Feb 24, 2021 6:19 am
Forum: General Discussion and Questions
Topic: Build problem, include library?
Replies: 7
Views: 556

Re: Build problem, include library?

Maybe this will help, from umail.py def __init__(self, host, port, ssl=False, username=None, password=None): import ussl self.username = username addr = usocket.getaddrinfo(host, port)[0][-1] sock = usocket.socket(usocket.AF_INET, usocket.SOCK_STREAM) sock.settimeout(DEFAULT_TIMEOUT) sock.connect(ad...