Some more basic work

This commit is contained in:
2025-12-01 20:10:22 +01:00
parent 8b39ff05c9
commit 3222cc349d
3 changed files with 55 additions and 11 deletions

View File

@@ -122,8 +122,8 @@ void wifi_init_softap()
void setup() {
Serial.begin(115200);
while (!Serial) delay(10);
delay(200);
// while (!Serial) delay(10);
delay(500);
// Arduino ESP32 logging
esp_log_level_set("*", ESP_LOG_INFO);
@@ -182,6 +182,11 @@ void setup() {
server.begin();
// NMEA2000 configuration
NMEA2000.SetN2kCANMsgBufSize(8);
NMEA2000.SetN2kCANReceiveFrameBufSize(250);
NMEA2000.SetN2kCANSendFrameBufSize(250);
NMEA2000.SetProductInformation("00000001", // Manufacturer's Model serial code
74, // Manufacturer's product code
"OBPkeypad6/1", // Manufacturer's Model ID
@@ -393,6 +398,10 @@ void loop() {
delay(200);
}
// NMEA2000.loop();
// NMEA2000.ParseMessages();
// development heartbeat
if (millis() - lastPrint >= 1000) {
lastPrint = millis();