Testing Out the Android Client

Time to test out the application on a real X10 light switch. Assuming the Rails-based X10 web application is working as expected, start up your Rails development server on the same network/subnet as the emulator in Figure 28, Running the Light Switch application.

images/x10androidscreen.png
Figure 28. Running the Light Switch application

Use the same port number as the one we assigned in the my_server_ip_address_and_port_number string from our Android application. For example, in the case of 192.168.1.100:3344, the IP address is 192.168.1.100 and the port number is 3344. Pass this as a command-line parameter when launching the Rails server ...

Get Programming Your Home now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.