Some more basic work
This commit is contained in:
13
src/main.cpp
13
src/main.cpp
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user