

WEMO SMART SWITCH CODE
Moving the device side code between something like OpenWRT Linux common on router-derived products and a bare metal ESP8266 would be a fair amount of work, but is conceptually straightforward. Should the hardware you were using then become unavailable, because you fully control the protocol, all you need to do is find different hardware on which to run it.
WEMO SMART SWITCH FULL
You retain the full ability to enable either or both paths, to change the rules, and change the service providers. Any of these can generally have the stock firmware replaced with a different one, which can act as a server on a local network permitting control that way, and or subscribe to messages relayed through something like an MQTT broker in the cloud, enabling out-of-home control. Your example HS200 light switch joins many smart outlets in being based on an Embedded Linux system (the source is available in TP Link's GPL Code Center) Chances are, like most of the outlets, the underlying system is one derived from a strange vendor branch of a common Linux distribution intended for routers. Your most future proof solutions will be those which fully separate the hardware from the protocol.
