feat(iot): connection wifi and API *UNTESTED*
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
#define API_H
|
||||
|
||||
#include <Arduino_JSON.h>
|
||||
#include <WiFiEsp.h>
|
||||
|
||||
class API {
|
||||
public:
|
||||
@ -10,6 +11,8 @@ public:
|
||||
|
||||
API(String user, String password, String host, bool https = true);
|
||||
|
||||
bool wifiBegin(String wifiId, String wifiPass, Stream* espSerial);
|
||||
|
||||
bool sendValute(String val, String poubelleID);
|
||||
|
||||
JSONVar* connect();
|
||||
@ -20,7 +23,12 @@ private:
|
||||
String password;
|
||||
String serveurHost;
|
||||
bool https;
|
||||
|
||||
WiFiEspClient* client;
|
||||
String token;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user