Search found 4 matches
- Wed Jan 24, 2018 3:33 pm
- Forum: ESP8266 boards
- Topic: How can I protect sensitive information?
- Replies: 10
- Views: 11998
Re: How can I protect sensitive information?
Personally, I use ujson and store things in a 'secrets.json' file that looks something like: { "mqtt": { "host": "example.com", "pass": "your_pass", "prefix": "prefix", "user": "username" } } And then in code: import ujson import ubinascii import machine from umqtt.simple import MQTTClient with open...
- Wed Aug 31, 2016 11:57 am
- Forum: ESP8266 boards
- Topic: Sending mails with esp8266 and micropython
- Replies: 11
- Views: 14802
Re: Sending mails with esp8266 and micropython
To followup with Christian's post, I also found using a push service works really well. I'm on android though so prowl won't work for me so I use Pushbullet. Another service i've used is pushover and I think ifttt also has a http endpoint with their Maker channel though I've never used it. These all...
- Tue Aug 30, 2016 12:19 am
- Forum: ESP8266 boards
- Topic: ISR to wake from deepsleep?
- Replies: 4
- Views: 5488
- Mon Aug 29, 2016 7:08 pm
- Forum: ESP8266 boards
- Topic: ISR to wake from deepsleep?
- Replies: 4
- Views: 5488
ISR to wake from deepsleep?
So I've read up on deepsleep mode and see I can wake it up from a timer, but can I wake it up from an ISR? I'd like to make it so when a button is pressed, it wakes up, hits an http endpoint and then goes back to deepsleep to hopefully save batter. Is this possible? I have the latter 1/2 working and...