Fix compilation for esp8266

This commit is contained in:
Luc 2024-12-10 20:27:39 +08:00
parent 00ed69275b
commit 0f55c19a2f
3 changed files with 8 additions and 3 deletions

View File

@ -81,7 +81,7 @@
#if defined(AUTHENTICATION_FEATURE)
#include "../../modules/authentication/authentication_service.h"
#endif // AUTHENTICATION_FEATURE
#if defined(SSDP_FEATURE)
#if defined(SSDP_FEATURE) && defined(ARDUINO_ARCH_ESP32)
#include <ESP32SSDP.h>
#endif // SSDP_FEATURE
#if defined(MDNS_FEATURE)
@ -312,7 +312,12 @@ void ESP3DCommands::ESP420(int cmd_params_pos, ESP3DMessage* msg) {
}
#if defined (SSDP_FEATURE)
// SSDP enabled
#if defined(ARDUINO_ARCH_ESP32)
tmpstr = SSDP.started() ? "ON (" + String(SSDP.localIP().toString()) + ")" : "OFF";
#endif // ARDUINO_ARCH_ESP32
#if defined(ARDUINO_ARCH_ESP8266)
tmpstr = "ON" ;
#endif // ARDUINO_ARCH_ESP8266
if (!dispatchIdValue(json, "SSDP", tmpstr.c_str(), target, requestId, false)) {
return;
}

View File

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

View File

@ -1,3 +1,3 @@
{
"version": "3.0.0.a247"
"version": "3.0.0.a248"
}