feat(iot): constructeur API
This commit is contained in:
parent
e8ebe48128
commit
98e0342fe1
@ -6,8 +6,21 @@
|
||||
class API {
|
||||
public:
|
||||
|
||||
API();
|
||||
|
||||
|
||||
API(String user, String password, String host, bool https = true);
|
||||
|
||||
bool sendValute(String val, String poubelleID);
|
||||
|
||||
JSONVar* connect();
|
||||
|
||||
private:
|
||||
|
||||
String user;
|
||||
String password;
|
||||
String serveurHost;
|
||||
bool https;
|
||||
String token;
|
||||
};
|
||||
|
||||
|
||||
|
@ -1,8 +1,12 @@
|
||||
#include "../include/API.h"
|
||||
|
||||
|
||||
API::API(){
|
||||
//TODO: implement API constructor
|
||||
API::API(String user, String password, String host, bool https = true){
|
||||
this->user = user;
|
||||
this->password = password;
|
||||
this->serveurHost = host;
|
||||
this->https = https;
|
||||
this->token = "";
|
||||
}
|
||||
|
||||
JSONVar* API::connect(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user