feat(IOT): LibAPI #21
@ -1,32 +1,12 @@
|
|||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
// #include "Program.h"
|
#include "Program.h"
|
||||||
|
|
||||||
// Program* program;
|
Program* program;
|
||||||
|
|
||||||
// void setup() {
|
void setup() {
|
||||||
// program = new Program();
|
program = new Program();
|
||||||
// }
|
|
||||||
|
|
||||||
// void loop() {
|
|
||||||
// program->loop();
|
|
||||||
// }
|
|
||||||
|
|
||||||
#include "API.h"
|
|
||||||
#include <Arduino_JSON.h>
|
|
||||||
|
|
||||||
API* testAPI;
|
|
||||||
|
|
||||||
void setup(){
|
|
||||||
Serial.begin(MONITOR_SPEED);
|
|
||||||
Serial1.begin(MONITOR_SPEED);
|
|
||||||
|
|
||||||
testAPI = new API("patrick","Patrick123","https://iot.epi.cb85.software");
|
|
||||||
|
|
||||||
testAPI->wifiBegin("Clement4G","Clement123",&Serial1);
|
|
||||||
|
|
||||||
Serial.print(JSONVar::stringify(*(testAPI->connect())));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop(){
|
void loop() {
|
||||||
|
program->loop();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user