Library for receiving data from fake inverter.
Diff: Inverter.h
- Revision:
- 0:e2b263279a61
- Child:
- 1:1b1e78592710
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Inverter.h Wed Mar 17 16:13:45 2021 +0000 @@ -0,0 +1,19 @@ +#ifndef INVERTER_H +#define INVERTER_H + +#include "mbed.h" +#include "EthernetInterface.h" +#include "ArduinoJson.h" + +class Inverter +{ +public: + Inverter(char* url, int port, EthernetInterface* netIn); + int getPower(); + +private: + EthernetInterface* eth; + TCPSocket socket; + SocketAddress a; +}; +#endif \ No newline at end of file