Search found 6 matches

by alanb
Mon Oct 26, 2015 1:45 am
Forum: WiPy and CC3200 boards
Topic: NTP library for WiPy
Replies: 9
Views: 15382

Re: NTP library for WiPy

Very nice, thanks!
by alanb
Mon Oct 26, 2015 1:32 am
Forum: WiPy and CC3200 boards
Topic: Set RTC time on boot from timezonedb.com
Replies: 4
Views: 4792

Re: Set RTC time on boot from timezonedb.com

danicampora wrote: The RTC time is kept across power saving modes, so even after a DEEPSLEEP reset it will keep the correct time.
Thanks for the tip. I updated my boot.py to only set the RTC if the reset reason was POWER_ON or HARD_RESET.
by alanb
Sun Oct 25, 2015 4:02 pm
Forum: WiPy and CC3200 boards
Topic: Set RTC time on boot from timezonedb.com
Replies: 4
Views: 4792

Set RTC time on boot from timezonedb.com

I hacked up a module that gets time from the timezonedb.com, then makes it easy to sync your WiPy's real-time clock (RTC) to it. This is not that accurate because it makes no attempt to account for network latencies, but +/- a few seconds is fine for many applications. Note, this module has a horrib...
by alanb
Sat Oct 24, 2015 10:35 pm
Forum: WiPy and CC3200 boards
Topic: Sending email
Replies: 36
Views: 181642

Re: Sending email

I tested sending through Yahoo's smtp server and it worked like a charm. >>> import smtplib >>> efrom = 'me@yahoo.com' >>> eto = 'you@gmail.com' >>> header = 'To: {} \nFrom: {} \nSubject: Email from my WiPy\n\n'.format(efrom, eto) >>> msg = header + 'Hi,\nThis is the WiPy emailing ;-)\n' >>> smtpser...
by alanb
Sat Oct 24, 2015 2:07 am
Forum: WiPy and CC3200 boards
Topic: Get current Wifi object
Replies: 11
Views: 9764

Re: Get current Wifi object

This is working well for me on 1.1.0. My boot.py is now happy and working well over telnet even when I want to Ctl-D to reset the board. Here it is, for people's reference: import machine import os import time from network import WLAN BAUD = 2457600 # fast when directly connected on NooElec PL2303 S...
by alanb
Tue Oct 20, 2015 3:27 am
Forum: WiPy and CC3200 boards
Topic: Get current Wifi object
Replies: 11
Views: 9764

Re: Get current Wifi object

+1 for a way to get the current wifi object. I was hoping to setup exactly what you suggested where you don't drop the connection across soft resets.