With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
The default state is ON (HIGH), that's why they light up by default. It is currently hardcoded in the source code, by you can change that to PinState.LOW https://github.com/sshlyk/switch-server/blob/maste...You still should be able to control the device. Check server-side logs to see if there are incoming requests whey you use the app. If not, make sure both server and client run on the same home local network. Keep in mind, that some public routers drop broadcast packets and client wont be able to discover and send requests.
I am using pi B and have not tried other models. As long as you can install pi4j library it will work since server is written in java. Server code and android app are opened sourced, feel free to make changesThx
You need to run it as super user. pi4j need super user access sudo java -jar /home/pi/switch-server.jar
Join 2 million + to receive instant DIY inspiration in your inbox.
© 2016 Autodesk, Inc.