In the previous post, I mentioned the arrival of the Power Measuring WiFi Wireless Switch from ITEAD. It is called the Sonoff POW (or Sonoff Pow - both are seen on the manufacturer's web page).
It was a simple matter to change its firmware to Sonoff-Tasmota by Theo Arends and to add three virtual devices in Domoticz to handle the switch.
Table of Contents
- Updating the ESP8266 Arduino Core
- Prerequisites for Sonoff-Tasmota switchmode 3
On October 16, 2017 Espressif released patches to counter the Key Reinstallation Attack (KRACK) vulnerability of the WPA2 WiFi security protocol. And it appears that on October 30, 2017 that Ivan Grokhotkov (Igrr) incorporated these changes in the latest release candidate for version 2.4.0 of the ESP8266 Arduino Core Release. So yesterday, on the 31st, it seemed like a good time to update the ESP8266 Arduino Core in the Arduino IDE.
Since I was using the latest stable version of the Core, I had to
add an additional URL to the list of Board Manager URLS.
Read the docs site for release candidate 2. I decided
to keep the older URL also. Note that the instructions still give the URL for
the stable 2.3 version; the URL for the release candidate is
https://github.com/esp8266/Arduino/releases/download/2.4.0-rc2/package_esp8266com_index.json
As the instructions say, add the new URL and then put a comma to seperate it
from the old one.

If you press on the button to the right of the text box, it will be
easier to add URLs, one per line (no separating comma) as seen on the
following screen shot.

The next step is to go to the boards manager:
Tools/Board/Boards Manager....

I put ESP in the filter box to quickly find esp8266
by the ESP8266 Community. As can be seen, version 2.3.0 was installed. Click on
the entry. I elected to remove this older version

and then to installed the newest version 2.4.0-rc2.

Presumably, one could have chosen to update to the newer version; I am not sure what would be the difference.
To use the patched version of the Espressif SDK in a deployed device, its sketch would need to be recompiled with the new version of the ESP8266 Arduino Core and the binary file would have to be upload to the device. I only have one device running my own code and I will soon do that. In the meantime, I decided to switch to Theo Arends latest version of his replacement Sonoff firmware for the Sonoff Basic switches I have around the house and for the new Pow switch.