Création du module DolibarrClient avec ses différentes routes & création du module WarehouseGUI pour le LCD M5Stack

This commit is contained in:
2023-09-29 15:50:51 +02:00
parent 884a181f04
commit 1828d7a961
21 changed files with 646 additions and 4 deletions

View File

@ -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
}

View File

@ -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() {