1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-15 15:03:07 +01:00
This commit is contained in:
andreas
2021-10-22 16:15:49 +02:00
parent 6e449ca4dc
commit 149ffb7a5f
2 changed files with 6 additions and 1 deletions

View File

@@ -25,6 +25,7 @@
#include <WebServer.h>
#include <Preferences.h>
#include <ArduinoJson.h>
#include <ESPmDNS.h>
#include "N2kDataToNMEA0183.h"
@@ -191,7 +192,7 @@ void setup() {
sendTCP=config.getConfigItem(config.sendTCP,true);
sendSeasmart=config.getConfigItem(config.sendSeasmart,true);
systemName=config.getConfigItem(config.systemName,true);
MDNS.begin(config.getConfigItem(config.systemName)->asCString());
gwWifi.setup();
// Start TCP server
@@ -209,6 +210,8 @@ void setup() {
webserver.begin();
Serial.println("HTTP server started");
MDNS.addService("_http","_tcp",80);
// Reserve enough buffer for sending all messages. This does not work on small memory devices like Uno or Mega
NMEA2000.SetN2kCANMsgBufSize(8);