Turning on lights

Hello, I am about to embark on a project where I use code to turn on a light switch. So far what I have gathered is that I need to create a class that send out directions (possibly in the form of a Boolean expression) to the device. Can anyone give me a tip of hint as to what the code might look like or a better place to start?
first is to figure out exactly how you will flip the switch... you need to control some hardware, or emit a signal, or send a command on a network to something else that can do it, or whatever??

The code you write depends on this.
You may need a class. It could be you just need a network socket and a sendto command. It just depends.
Topic archived. No new replies allowed.