Library for receiving data from fake inverter.
Inverter.h
- Committer:
- khaiminhvn
- Date:
- 2021-03-24
- Revision:
- 1:1b1e78592710
- Parent:
- 0:e2b263279a61
File content as of revision 1:1b1e78592710:
#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); void connect(char* url, int port); int getPower(); private: EthernetInterface* eth; TCPSocket socket; SocketAddress a; }; #endif