here is code for App Inventor to control relay output by KC868 smart controller. any model can be used. before import the .aia file, need import TcpClientExtension.aix for App Inventor, this is TCP socket plugin.
app-inventor-smart-home-apk.zip (Size: 5.08 MB / Downloads: 1,361)
app-inventor-smart-home-apk.zip (Size: 5.08 MB / Downloads: 1,361)