Initial commit, getting all the stuff from PlatformIO

This commit is contained in:
2025-11-02 17:55:41 +00:00
commit 4b4b816a8c
3003 changed files with 1213319 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
// Platform compatibility: espressif8266
#include <Arduino.h>
#include <Ethernet.h>
#include <PicoMQTT.h>
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
EthernetServer server(1883);
PicoMQTT::Server mqtt(server);
void setup() {
Serial.begin(115200);
Serial.println("Connecting to network...");
Ethernet.init(5); // ss pin
while (!Ethernet.begin(mac)) {
Serial.println("Failed, retrying...");
}
Serial.println(Ethernet.localIP());
mqtt.begin();
}
void loop() {
mqtt.loop();
}