mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-12 18:29:00 +08:00
Fix ESP32 compilation failures
Fix Travis not sending email -TBC
This commit is contained in:
parent
21002cf62a
commit
0101f0a4fe
@ -63,5 +63,7 @@ script:
|
||||
|
||||
notifications:
|
||||
email:
|
||||
recipients:
|
||||
- luc@tech-hunters.com
|
||||
on_success: always
|
||||
on_failure: always
|
||||
|
@ -40,7 +40,7 @@
|
||||
//COMMUNICATION_PROTOCOL: to communicate with printer or TFT
|
||||
//RAW_SERIAL standard serial
|
||||
//MKS_SERIAL Mks protocol
|
||||
#define COMMUNICATION_PROTOCOL MKS_SERIAL
|
||||
#define COMMUNICATION_PROTOCOL RAW_SERIAL
|
||||
|
||||
//AUTHENTICATION_FEATURE: protect pages by login password
|
||||
//#define AUTHENTICATION_FEATURE
|
||||
|
Binary file not shown.
@ -22,7 +22,7 @@
|
||||
#define _VERSION_ESP3D_H
|
||||
|
||||
//version and sources location
|
||||
#define FW_VERSION "3.0.0.a76"
|
||||
#define FW_VERSION "3.0.0.a77"
|
||||
#define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0"
|
||||
|
||||
#endif //_VERSION_ESP3D_H
|
||||
|
@ -113,7 +113,7 @@ bool NetConfig::isHostnameValid (const char * hostname)
|
||||
*/
|
||||
IPAddress NetConfig::localIPAddress()
|
||||
{
|
||||
IPAddress current_ip = 0;
|
||||
IPAddress current_ip = IPAddress(0,0,0,0);
|
||||
#if defined( WIFI_FEATURE)
|
||||
if (WiFi.getMode() == WIFI_STA) {
|
||||
current_ip = WiFi.localIP();
|
||||
|
@ -265,9 +265,7 @@ bool NetServices::begin()
|
||||
if(WiFi.getMode() != WIFI_AP) {
|
||||
// Add service to MDNS-SD
|
||||
log_esp3d("Add mdns service http / tcp port %d", HTTP_Server::port());
|
||||
if (!MDNS.addService("http", "tcp", HTTP_Server::port())) {
|
||||
log_esp3d("failed");
|
||||
}
|
||||
MDNS.addService("http", "tcp", HTTP_Server::port());
|
||||
//Add TXT records
|
||||
MDNS.addServiceTxt("http", "tcp", "ESP3D", FW_VERSION);
|
||||
}
|
||||
|
@ -56,6 +56,9 @@ typedef WiFiClientSecure TSecureClient;
|
||||
typedef WiFiClientSecure TSecureClient;
|
||||
#include <WiFi.h>
|
||||
#include <HTTPClient.h>
|
||||
extern "C" {
|
||||
#include "libb64/cdecode.h"
|
||||
}
|
||||
#endif //ARDUINO_ARCH_ESP32
|
||||
|
||||
#include <base64.h>
|
||||
@ -472,12 +475,7 @@ bool NotificationsService::getEmailFromSettings()
|
||||
bool NotificationsService::decode64(const char* encodedURL, char *decodedURL)
|
||||
{
|
||||
size_t out_len = 0;
|
||||
#if defined( ARDUINO_ARCH_ESP8266)
|
||||
out_len = base64_decode_chars(encodedURL, strlen(encodedURL), decodedURL);
|
||||
#endif //ARDUINO_ARCH_ESP8266
|
||||
#if defined( ARDUINO_ARCH_ESP32)
|
||||
strcpy(base64_decode(encodedURL, strlen(encodedURL),&out_len);
|
||||
#endif //ARDUINO_ARCH_ESP32
|
||||
log_esp3d("URLE: %s", encodedURL);
|
||||
log_esp3d("URLD: %s", decodedURL);
|
||||
return (out_len>0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user