Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: m3Dpi mbed-rtos mbed MbedJSONValue
lib/jsonReporter.h
- Committer:
- sillevl
- Date:
- 2017-08-30
- Revision:
- 17:b73fcdb828f3
- Parent:
- 13:d6374484b953
File content as of revision 17:b73fcdb828f3:
#pragma once #include "reporter.h" #include "MbedJSONValue.h" class JsonReporter : public Reporter { public: JsonReporter(mbed::Stream* _out, const char _id[]) : Reporter(_out, _id) {}; virtual void time(time_t seconds); virtual void distance(m3dpi::Distance distance); virtual void acceleration(m3dpi::Acceleration acc); virtual void direction(m3dpi::Direction direction); virtual void rotation(m3dpi::Rotation rotation); protected: MbedJSONValue* jsonFactory(); void print(MbedJSONValue* json); };