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

operation/OperationSupport.h

Committer:
xinlei
Date:
2016-08-08
Revision:
139:f8ab852e83e7
Parent:
108:f1ee3e1eb126

File content as of revision 139:f8ab852e83e7:

#ifndef OPERATIONSUPPORT_H
#define OPERATIONSUPPORT_H

#include "Operation.h"
#include "SmartRestConf.h"
#include "SmartRestTemplate.h"

class OperationSupport
{
public:
    OperationSupport(SmartRestTemplate& tpl, OperationPool& pool):
    _init(false), _tpl(tpl), opool(pool) {}

    bool init();
    bool executePendingOperations();

private:
    bool _init;
    SmartRestTemplate& _tpl;
    OperationPool& opool;
};

#endif