Control Xiaomi Wifi Plug (chuangmi m3) without needing Python,Nodejs or additional tools/libraries.
Run make
If you have a MIPS target, edit cross-compiler path in Makefile
and run
make ARCH=MIPS
First, add your device IP and token in run.sh
file.
Execute run.sh 1
to turn the plug on and run.sh 0
to turn it off.
Most of the code is taken from https://github.com/x42/c-miio