komurlu / c-miio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Control Xiaomi Wifi Plug (chuangmi m3) without needing Python,Nodejs or additional tools/libraries.

BUILD

Run make

If you have a MIPS target, edit cross-compiler path in Makefile and run

make ARCH=MIPS

RUN

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

About


Languages

Language:C 99.5%Language:Makefile 0.3%Language:Shell 0.1%