DataLogger service to be configured to subscribe to your own whiteboard resource

孤人 提交于 2019-12-11 15:54:36

问题


Have investigated sample code to subscribe DataLogger to move sensors. https://bitbucket.org/suunto/movesense-mobile-lib/src/master/android/samples/DataLoggerSample/ But failed to subscribe to my own whiteboard resource. As example used jump counter from jump count sample. https://bitbucket.org/suunto/movesense-device-lib/src/master/samples/jumpmeter_app/ WB_RES::LOCAL::SAMPLE_JUMPCOUNTER_JUMPCOUNT::LID

And have tried to connect to it by DataLoggerConfig.DataEntry[] entries = {new DataLoggerConfig.DataEntry('/Sample/JumpCounter/JumpCount')}; But get only last value, not all the values.

What need to do else? Or have some sample of DataLogger service to be configured to subscribe to your own whiteboard resource?


回答1:


There is a bug in the SBEM to JSON conversion (or the .../Descriptors) that causes this if the resource notification type is a simple primitive type (like integer). Change the API to return a complex type and it will work.

Full Disclosure: I work for the movesense team



来源:https://stackoverflow.com/questions/57610986/datalogger-service-to-be-configured-to-subscribe-to-your-own-whiteboard-resource

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!