feat(IOT): LibAPI #21
@ -1,32 +1,12 @@
|
||||
#include <Arduino.h>
|
||||
// #include "Program.h"
|
||||
#include "Program.h"
|
||||
|
||||
// Program* program;
|
||||
|
||||
// void setup() {
|
||||
// program = new Program();
|
||||
// }
|
||||
|
||||
// void loop() {
|
||||
// program->loop();
|
||||
// }
|
||||
|
||||
#include "API.h"
|
||||
#include <Arduino_JSON.h>
|
||||
|
||||
API* testAPI;
|
||||
Program* program;
|
||||
|
||||
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())));
|
||||
program = new Program();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
program->loop();
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user