Library for receiving data from fake inverter.

Inverter.h

Committer:
jump_man
Date:
2021-03-17
Revision:
0:e2b263279a61
Child:
1:1b1e78592710

File content as of revision 0:e2b263279a61:

#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