kjhjhkj
Dependencies: NetServices mbed C027_Supports mbed-rpcx
Diff: RtuRpc.h
- Revision:
- 0:64967b7043c2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RtuRpc.h Tue Aug 06 12:59:05 2019 +0000 @@ -0,0 +1,26 @@ +#ifndef RTURPC_H +#define RTURPC_H + +#include "HTTPClient.h" +#include <string> +#include <ctime> + +class RtuRpc +{ +public: + + RtuRpc(std::string host); + + void commitReading(const std::time_t &dt, int readingId, double value); + + void commitEvent(const std::time_t &dt, int eventId, double value); + +private: + + std::string hostAddr; + + HTTPClient cl; + +}; + +#endif