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
jsonReporter.h
00001 #pragma once 00002 00003 #include "reporter.h" 00004 #include "MbedJSONValue.h" 00005 00006 class JsonReporter : public Reporter 00007 { 00008 public: 00009 JsonReporter(mbed::Stream* _out, const char _id[]) : Reporter(_out, _id) {}; 00010 00011 virtual void time(time_t seconds); 00012 virtual void distance(m3dpi::Distance distance); 00013 virtual void acceleration(m3dpi::Acceleration acc); 00014 virtual void direction(m3dpi::Direction direction); 00015 virtual void rotation(m3dpi::Rotation rotation); 00016 00017 protected: 00018 MbedJSONValue* jsonFactory(); 00019 void print(MbedJSONValue* json); 00020 };
Generated on Wed Jul 20 2022 08:05:50 by
1.7.2