32 lines
521 B
C++
32 lines
521 B
C++
#include <Arduino.h>
|
|
// #include "Program.h"
|
|
|
|
// Program* program;
|
|
|
|
// void setup() {
|
|
// 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(){
|
|
|
|
} |