feat(WIP): test main API lib
This commit is contained in:
parent
89ecb3bf17
commit
3208c2ff6b
@ -1,12 +1,32 @@
|
||||
#include <Arduino.h>
|
||||
#include "Program.h"
|
||||
// #include "Program.h"
|
||||
|
||||
Program* program;
|
||||
// Program* program;
|
||||
|
||||
void setup() {
|
||||
program = new 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",&Serial);
|
||||
|
||||
Serial.print(JSONVar::stringify(testAPI->connect()));
|
||||
}
|
||||
|
||||
void loop() {
|
||||
program->loop();
|
||||
void loop(){
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user