Official reference client implementation for Cumulocity SmartREST on u-blox C027.

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Vincent Wochnik

Committer:
xinlei
Date:
Fri May 08 12:19:57 2015 +0000
Revision:
101:dbcd3bc51758
Parent:
99:e369fc75c000
Child:
137:a52821cdb108
v2.1rc3

Who changed what in which revision?

UserRevisionLine numberNew contents of line
xinlei 99:e369fc75c000 1 #ifndef ABSTRACTREPORTER_H
xinlei 99:e369fc75c000 2 #define ABSTRACTREPORTER_H
xinlei 101:dbcd3bc51758 3 #include <stddef.h>
xinlei 99:e369fc75c000 4
xinlei 99:e369fc75c000 5 class AbstractReporter
xinlei 99:e369fc75c000 6 {
xinlei 99:e369fc75c000 7 public:
xinlei 101:dbcd3bc51758 8 virtual ~AbstractReporter() {}
xinlei 101:dbcd3bc51758 9 virtual bool init() = 0;
xinlei 101:dbcd3bc51758 10
xinlei 101:dbcd3bc51758 11 /* A string representation of the actual report.
xinlei 101:dbcd3bc51758 12 \return identifying name of the class.
xinlei 101:dbcd3bc51758 13 */
xinlei 101:dbcd3bc51758 14 virtual const char* name() const = 0;
xinlei 101:dbcd3bc51758 15
xinlei 101:dbcd3bc51758 16 /* Dump a SmartRest report to buf.
xinlei 101:dbcd3bc51758 17 \param buf buffer for the report.
xinlei 101:dbcd3bc51758 18 \param maxLen maximum length of buf.
xinlei 101:dbcd3bc51758 19 \param status a short summary of the report.
xinlei 101:dbcd3bc51758 20 Pass NULL if the status is not interested.
xinlei 101:dbcd3bc51758 21 \param num maximum length of status.
xinlei 101:dbcd3bc51758 22 \return number of characters written to buf, 0 means no report.
xinlei 101:dbcd3bc51758 23 */
xinlei 101:dbcd3bc51758 24 virtual size_t read(char* buf, size_t maxLen,
xinlei 101:dbcd3bc51758 25 char* status, size_t num) = 0;
xinlei 99:e369fc75c000 26 };
xinlei 99:e369fc75c000 27
xinlei 99:e369fc75c000 28 #endif /* ABSTRACTREPORTER_H */