Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaning API and documentation, more work on serial interface
Driver.java -now extends Runnable, drivers only need to implement ControllerModule or SensorModule -changed receiveMessage to receiveCommand to match naming convention LedFlash.java: -no longer implements Runnable SimpleDriver.java: -no longer extends Controller -no longer implements Runnable StatefullLed.java: -no longer implements Runnable Coordinator.java: -list of loaded drivers now stored in a hashmap -added broadcastCommand() -readSerial implemented (not tested) -sendCommand() changed to a wrapper method, checks current protocol version and routes message to sendCommandV0() or sendCommandV1() -added sendCommandV0() to send command as protocol 0 message: [destination | ':' |command | '\n'] -sendCommandV0() re-encodes message as US-ASCII from Unicode -added sendCommandV1() to send message as protocol 1 message: [start_byte | destination | ':' | command | '\n'] -sendBinary() implemented (needs to be updated to detect protocol version) -storeData() and readData() broken into text and binary versions SerialConnection.java: -attempts to connect to a preferred connection before trying from a static list SimpleHttpServer.java: -added empty class for testing
- Loading branch information