17 lines
364 B
C++
17 lines
364 B
C++
#ifndef ETHERNET_HANDLER_HPP
|
|
#define ETHERNET_HANDLER_HPP
|
|
#include "Arduino.h"
|
|
#include "HTTPClient.h"
|
|
|
|
class EthernetHandler {
|
|
public:
|
|
void init();
|
|
void begin();
|
|
void end();
|
|
String post(const String& url, const String& payload);
|
|
String get(const String& url);
|
|
};
|
|
|
|
extern EthernetHandler eth;
|
|
|
|
#endif // ETHERNET_HANDLER_HPP
|