GDP group 24 node core
Dependencies: EthernetInterface SDFileSystem mbed-rtos mbed snail MbedJSONValue
Diff: sensorinterface.h
- Revision:
- 3:71b090ec5c69
- Parent:
- 0:fcab3b154e49
- Child:
- 8:fd531fe7637b
diff -r 1cbb20dd1733 -r 71b090ec5c69 sensorinterface.h --- a/sensorinterface.h Sun Dec 14 22:28:24 2014 +0000 +++ b/sensorinterface.h Mon Dec 15 00:19:48 2014 +0000 @@ -11,14 +11,14 @@ struct sensor { char type; - int interval; + char readingSize; }; struct d_reply { char type; - vector<uint16_t> readings; + vector<char> readings; }; @@ -34,7 +34,7 @@ map<char, sensor>::iterator currentSensor; int update(); void error(int); - char findType(int address); + sensor& findType(sensor& s, int address); int sendRequest(char address); void readyTrigger(); bool ready;