Sync with ESP3DLib latest cleaning

Add mDNS code_base label (ESP3D/ESP3DLib)
Remove  outdated flags in ESP inline command line help
Bump version
This commit is contained in:
Luc 2022-08-24 11:50:44 +08:00
parent ee18988a83
commit 3331c47927
5 changed files with 7 additions and 44 deletions

View File

@ -109,9 +109,9 @@ const char * help[]= {"[ESP] (id) - display this help",
"[ESP402](State) - display/set check update at boot from SD which can be ON, OFF", "[ESP402](State) - display/set check update at boot from SD which can be ON, OFF",
#endif //SD_UPDATE_FEATURE #endif //SD_UPDATE_FEATURE
#if defined (WIFI_FEATURE) #if defined (WIFI_FEATURE)
"[ESP410](plain) - display available AP list (limited to 30) in plain/JSON", "[ESP410]display available AP list (limited to 30) in plain/JSON",
#endif //WIFI_FEATURE #endif //WIFI_FEATURE
"[ESP420](plain) - display ESP3D current status in plain/JSON", "[ESP420]display ESP3D current status in plain/JSON",
"[ESP444](Cmd) - set ESP3D state (RESET/RESTART)", "[ESP444](Cmd) - set ESP3D state (RESET/RESTART)",
#ifdef MDNS_FEATURE #ifdef MDNS_FEATURE
"[ESP450]display ESP3D list on network", "[ESP450]display ESP3D list on network",
@ -147,7 +147,7 @@ const char * help[]= {"[ESP] (id) - display this help",
"[ESP780](path) - List Global Filesystem", "[ESP780](path) - List Global Filesystem",
"[ESP790](Action)=(path) - rmdir / remove / mkdir / exists / create on Global Filesystem (path)", "[ESP790](Action)=(path) - rmdir / remove / mkdir / exists / create on Global Filesystem (path)",
#endif //GLOBAL_FILESYSTEM_FEATURE #endif //GLOBAL_FILESYSTEM_FEATURE
"[ESP800](plain)(time=YYYY-MM-DD-HH-MM-SS) - display FW Informations in plain/JSON", "[ESP800](time=YYYY-MM-DD-HH-MM-SS) - display FW Informations in plain/JSON",
#if COMMUNICATION_PROTOCOL != SOCKET_SERIAL #if COMMUNICATION_PROTOCOL != SOCKET_SERIAL
"[ESP900](ENABLE/DISABLE) - display/set serial state", "[ESP900](ENABLE/DISABLE) - display/set serial state",
"[ESP901]<BAUD RATE> - display/set serial baud rate", "[ESP901]<BAUD RATE> - display/set serial baud rate",

View File

@ -1,38 +0,0 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
#include "../esp3d_config.h"
//stripped version
#if defined (ESP3DLIB_ENV)
#include <HardwareSerial.h>
class FlushableHardwareSerial : public HardwareSerial
{
public:
FlushableHardwareSerial(int uart_nr) : HardwareSerial(uart_nr) {}
};
extern FlushableHardwareSerial flushableSerial;
#define MYSERIAL1 flushableSerial
#endif //ESP3DLIB_ENV

View File

@ -25,12 +25,13 @@
#if defined __has_include #if defined __has_include
# if __has_include ("../../configuration.h") # if __has_include ("../../configuration.h")
#include "../../configuration.h" #include "../../configuration.h"
#define ESP3D_CODE_BASE "ESP3D"
#else #else
#undef DISABLED #undef DISABLED
#undef _BV #undef _BV
# if __has_include ("../esp3dlib_config.h") # if __has_include ("../esp3dlib_config.h")
#include "../esp3dlib_config.h" #include "../esp3dlib_config.h"
#include "./Marlin/FlushableHardwareSerial.h" #define ESP3D_CODE_BASE "ESP3DLib"
#else #else
#error "No configuration file found" #error "No configuration file found"
#endif #endif

View File

@ -22,7 +22,7 @@
#define _VERSION_ESP3D_H #define _VERSION_ESP3D_H
//version and sources location //version and sources location
#define FW_VERSION "3.0.0.a209" #define FW_VERSION "3.0.0.a210"
#define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0" #define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0"
#endif //_VERSION_ESP3D_H #endif //_VERSION_ESP3D_H

View File

@ -114,7 +114,7 @@ void mDNS_Service::addESP3DServices(uint16_t port)
return; return;
} }
MDNS.addService(MDNS_SERVICE_NAME, MDNS_SERVICE_TYPE, _port); MDNS.addService(MDNS_SERVICE_NAME, MDNS_SERVICE_TYPE, _port);
MDNS.addServiceTxt(MDNS_SERVICE_NAME, MDNS_SERVICE_TYPE, "firmware", "esp3d"); MDNS.addServiceTxt(MDNS_SERVICE_NAME, MDNS_SERVICE_TYPE, "firmware", ESP3D_CODE_BASE);
MDNS.addServiceTxt(MDNS_SERVICE_NAME, MDNS_SERVICE_TYPE, "version", FW_VERSION); MDNS.addServiceTxt(MDNS_SERVICE_NAME, MDNS_SERVICE_TYPE, "version", FW_VERSION);
#if defined(ARDUINO_ARCH_ESP8266) #if defined(ARDUINO_ARCH_ESP8266)
_hMDNSServiceQuery = MDNS.installServiceQuery(MDNS_SERVICE_NAME, MDNS_SERVICE_TYPE,MDNSServiceQueryCallback); _hMDNSServiceQuery = MDNS.installServiceQuery(MDNS_SERVICE_NAME, MDNS_SERVICE_TYPE,MDNSServiceQueryCallback);