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.
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.