Création du module DolibarrClient avec ses différentes routes & création du module WarehouseGUI pour le LCD M5Stack
This commit is contained in:
@ -1,10 +1,12 @@
|
||||
#include "Program.h"
|
||||
#include "Arduino.h"
|
||||
#include "DolibarrClient.h"
|
||||
|
||||
Program::Program() {
|
||||
// Startup
|
||||
Serial.begin(MONITOR_SPEED);
|
||||
struct WifiConfig wifi_c = {WIFI_SSID, WIFI_PASSWORD};
|
||||
struct DolibarrConfig dolibarr = {DOLIBARR_URL, DOLIBARR_API_TOKEN};
|
||||
this->client = new DolibarrClient(wifi_c, dolibarr);
|
||||
}
|
||||
|
||||
void Program::loop() {
|
||||
// Loop
|
||||
}
|
||||
|
10
src/main.cpp
10
src/main.cpp
@ -1,9 +1,19 @@
|
||||
#include "Program.h"
|
||||
#include "Arduino.h"
|
||||
#include "WarehouseGUI.h"
|
||||
#include <M5Stack.h>
|
||||
|
||||
Program* program;
|
||||
|
||||
void setup() {
|
||||
|
||||
Serial.begin(DEFAULT_BAUD_RATE);
|
||||
program = new Program();
|
||||
|
||||
#if defined(DEBUG)
|
||||
Serial.println("Hello World");
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
Reference in New Issue
Block a user