I need a Java app that allows me to assign key presses to switch on and off a light controlled by remote Xbee radios.
The app should use the Xbee API for Java at [url removed, login to view]
There is an example of the type of behaviour I need here:
[url removed, login to view]
The app should allow me to input/change the COM port and baud rate manually.
The app should allow me to add up to 5 remote xbee radios - and manually set the XBeeAddress64 variable for each one.
The app should allow me to assign each remote xbee a key on the keyboard, which will act as a toggle.
When an assigned key is pressed, it should switch pin 20 (D0) on the remote device to HIGH (5) and the other four radios to LOW (4).
The app should also be able to poll an external XML file hosted on a local server.
I should be able to manually enter an address to access the XML file.
If an address is entered it should overide the remote key settings and only use the data from the XML to control the Xbees.
The XML file will contain states for the remote devices and be formatted e.g:
The app should constantly poll the XML file for changes and switch on or off pin 20 (D0) on the remote device accordingly.