Optimizing files for SPIFFS with Gulp
The ESP8266 flash layout defines a series of blocks of memory for each “partition”. There is a block for the user code (the “sketch”), there is a block for the OTA update file, another one for the emulated EEPROM, another for the WIFI configuration and one for the File System.
This last one uses Peter Andersson's SPIFFS (SPI Flash File System) code to store files in a similar fashion our computers do, but taking into account the special requirements of an embedded system and a flash memory chip....
ESP8266 calling home
Firmware over-the-air (OTA) is great. It makes you shiver whenever you throw an update to one of your devices. The ArduinoOTA library for ESP8266 is so easy to use it's almost magic. But once you have several devices deployed you start to think one step further.
Here I'm going to talk about two different options: writing an automated deployment script that performs OTA updates or giving your device the ability to call home querying for new updates, downloading them and flash itself into the latest version available....
Adding RF to a non-RF ITEAD Sonoff
Yes, sure! You can buy a Sonoff RF and you are good to go, I guess. But I didn't and I was not so sure about the no-named RF receiver so I ended thinking about adding my own.
But first things first. The Sonoff is an ESP8266 based smart switch by ITEAD which comes with custom firmware that communicates with the manufacturer cloud to provide “smart” capabilities like remote switching or scheduling....