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