goopypanther / hackerboat

Software for the hackerbot labs autonomous hackerboat
3 stars 1 forks source link

boatState/, /all, /etc does not work #34

Closed logos-electromechanical closed 8 years ago

logos-electromechanical commented 8 years ago

When attempting to access /hb/boneState via the REST interface, it returns a NULL response rather than returning the last record. Stepping through with GDB shows that what's happening is that the step(sth) statement always returns SQLITE_DONE, which should happen if and only if the table is empty, which it is not. /boneState/count returns a sane value, for example.

This code is shared with other objects (such as arduinoState and gpsFix) which are working correctly.