initial
This commit is contained in:
17
main/Ethernet.hpp
Normal file
17
main/Ethernet.hpp
Normal file
@ -0,0 +1,17 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user