Sille Van Landschoot / Mbed 2 deprecated m3Dpi-helloworld

Dependencies:   m3Dpi mbed-rtos mbed MbedJSONValue

Committer:
sillevl
Date:
Sat Dec 19 15:27:15 2015 +0000
Revision:
13:d6374484b953
Parent:
11:ccb8653e285f
add binary reporter;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sillevl 7:9068fc754a0b 1 #pragma once
sillevl 7:9068fc754a0b 2
sillevl 11:ccb8653e285f 3 #include "reporter.h"
sillevl 7:9068fc754a0b 4 #include "MbedJSONValue.h"
sillevl 7:9068fc754a0b 5
sillevl 11:ccb8653e285f 6 class JsonReporter : public Reporter
sillevl 7:9068fc754a0b 7 {
sillevl 7:9068fc754a0b 8 public:
sillevl 13:d6374484b953 9 JsonReporter(mbed::Stream* _out, const char _id[]) : Reporter(_out, _id) {};
sillevl 11:ccb8653e285f 10
sillevl 11:ccb8653e285f 11 virtual void time(time_t seconds);
sillevl 11:ccb8653e285f 12 virtual void distance(m3dpi::Distance distance);
sillevl 11:ccb8653e285f 13 virtual void acceleration(m3dpi::Acceleration acc);
sillevl 11:ccb8653e285f 14 virtual void direction(m3dpi::Direction direction);
sillevl 11:ccb8653e285f 15 virtual void rotation(m3dpi::Rotation rotation);
sillevl 11:ccb8653e285f 16
sillevl 11:ccb8653e285f 17 protected:
sillevl 7:9068fc754a0b 18 MbedJSONValue* jsonFactory();
sillevl 7:9068fc754a0b 19 void print(MbedJSONValue* json);
sillevl 7:9068fc754a0b 20 };