[apparatus-templi] [ciasaboark/apparatus-templi] e45afc: Cleaning API and documentation, more work on seria...

  • From: Jonathan Nelson <ciasaboark@xxxxxxxxx>
  • To: apparatus-templi@xxxxxxxxxxxxx
  • Date: Mon, 27 Jan 2014 19:13:51 -0800

  Branch: refs/heads/master
  Home:   https://github.com/ciasaboark/apparatus-templi
  Commit: e45afce5355d8f9be34cc792b3a23243877739c3
      
https://github.com/ciasaboark/apparatus-templi/commit/e45afce5355d8f9be34cc792b3a23243877739c3
  Author: Jonathan Nelson <ciasaboark@xxxxxxxxx>
  Date:   2014-01-27 (Mon, 27 Jan 2014)

  Changed paths:
    M Coordinator/drivers/org/apparatus_templi/LedFlash.java
    M Coordinator/drivers/org/apparatus_templi/SimpleDriver.java
    M Coordinator/drivers/org/apparatus_templi/StatefullLed.java
    M Coordinator/src/org/apparatus_templi/Coordinator.java
    M Coordinator/src/org/apparatus_templi/Driver.java
    M Coordinator/src/org/apparatus_templi/SerialConnection.java
    A Coordinator/src/org/apparatus_templi/SimpleHttpServer.java

  Log Message:
  -----------
  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


Other related posts:

  • » [apparatus-templi] [ciasaboark/apparatus-templi] e45afc: Cleaning API and documentation, more work on seria... - Jonathan Nelson