Browse Source

Reword comments regarding 2.4.0 (#2024)

master
Max Prokhorov 4 years ago
committed by GitHub
parent
commit
f743ca4c6c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 13 deletions
  1. +5
    -5
      code/espurna/config/general.h
  2. +6
    -6
      code/espurna/config/prototypes.h
  3. +1
    -1
      code/espurna/utils.ino
  4. +2
    -1
      code/scripts/pio_main.py

+ 5
- 5
code/espurna/config/general.h View File

@ -606,8 +606,8 @@
#define WEB_EMBEDDED 1 // Build the firmware with the web interface embedded in
#endif
// This is not working at the moment!!
// Requires SECURE_CLIENT = SECURE_CLIENT_AXTLS and ESP8266 Arduino Core 2.4.0
// Requires ESPAsyncTCP to be built with ASYNC_TCP_SSL_ENABLED=1 and Arduino Core version >= 2.4.0
// XXX: This is not working at the moment!! Pending https://github.com/me-no-dev/ESPAsyncTCP/issues/95
#ifndef WEB_SSL_ENABLED
#define WEB_SSL_ENABLED 0 // Use HTTPS web interface
#endif
@ -700,11 +700,11 @@
#endif
#ifndef LLMNR_SUPPORT
#define LLMNR_SUPPORT 0 // Publish device using LLMNR protocol by default (1.95Kb) - requires 2.4.0
#define LLMNR_SUPPORT 0 // Publish device using LLMNR protocol by default (1.95Kb) - requires Core version >= 2.4.0
#endif
#ifndef NETBIOS_SUPPORT
#define NETBIOS_SUPPORT 0 // Publish device using NetBIOS protocol by default (1.26Kb) - requires 2.4.0
#define NETBIOS_SUPPORT 0 // Publish device using NetBIOS protocol by default (1.26Kb) - requires Core version >= 2.4.0
#endif
#ifndef SSDP_SUPPORT
@ -1363,7 +1363,7 @@
// THINGSPEAK OVER SSL
// Using THINGSPEAK over SSL works well but generates problems with the web interface,
// so you should compile it with WEB_SUPPORT to 0.
// When THINGSPEAK_USE_ASYNC is 1, requires SECURE_CLIENT = SECURE_CLIENT_AXTLS and ESP8266 Arduino Core >= 2.4.0.
// When THINGSPEAK_USE_ASYNC is 1, requires EspAsyncTCP to be built with ASYNC_TCP_SSL_ENABLED=1 and ESP8266 Arduino Core >= 2.4.0.
#define THINGSPEAK_USE_SSL 0 // Use secure connection
#define THINGSPEAK_FINGERPRINT "78 60 18 44 81 35 BF DF 77 84 D4 0A 22 0D 9B 4E 6C DC 57 2C"


+ 6
- 6
code/espurna/config/prototypes.h View File

@ -81,8 +81,8 @@ void systemStabilityCounter(uint8_t);
// API
// -----------------------------------------------------------------------------
using api_get_callback_f = std::function<void(char *, size_t)>;
using api_put_callback_f = std::function<void(const char *)> ;
using api_get_callback_f = std::function<void(char * buffer, size_t size)>;
using api_put_callback_f = std::function<void(const char * payload)> ;
#if WEB_SUPPORT
void apiRegister(const char * key, api_get_callback_f getFn, api_put_callback_f putFn = NULL);
@ -192,8 +192,8 @@ void i2c_read_buffer(uint8_t address, uint8_t * buffer, size_t len);
#include <PubSubClient.h>
#endif
using mqtt_callback_f = std::function<void(unsigned int, const char *, char *)>;
using mqtt_msg_t = std::pair<String, String>;
using mqtt_callback_f = std::function<void(unsigned int type, const char * topic, char * payload)>;
using mqtt_msg_t = std::pair<String, String>; // topic, payload
void mqttRegister(mqtt_callback_f callback);
@ -312,7 +312,7 @@ class AsyncWebServer;
class AwsEventType;
#endif
using web_body_callback_f = std::function<bool(AsyncWebServerRequest*, uint8_t*, size_t, size_t, size_t)>;
using web_body_callback_f = std::function<bool(AsyncWebServerRequest*, uint8_t* data, size_t len, size_t index, size_t total)>;
using web_request_callback_f = std::function<bool(AsyncWebServerRequest*)>;
void webBodyRegister(web_body_callback_f);
void webRequestRegister(web_request_callback_f);
@ -399,7 +399,7 @@ bool wifiConnected();
// -----------------------------------------------------------------------------
// THERMOSTAT
// -----------------------------------------------------------------------------
using thermostat_callback_f = std::function<void(bool)>;
using thermostat_callback_f = std::function<void(bool state)>;
#if THERMOSTAT_SUPPORT
void thermostatRegister(thermostat_callback_f callback);
#endif


+ 1
- 1
code/espurna/utils.ino View File

@ -597,7 +597,7 @@ bool sslFingerPrintChar(const char * fingerprint, char * destination) {
// Fixed since 2.4.0, see: esp8266/core/esp8266/Esp.cpp: ESP::eraseConfig()
bool eraseSDKConfig() {
#if defined(ARDUINO_ESP8266_RELEASE_2_3_0)
const size_t cfgsize = 0x4000;
constexpr size_t cfgsize = 0x4000;
size_t cfgaddr = ESP.getFlashChipSize() - cfgsize;
for (size_t offset = 0; offset < cfgsize; offset += SPI_FLASH_SEC_SIZE) {


+ 2
- 1
code/scripts/pio_main.py View File

@ -14,7 +14,8 @@ Import("env", "projenv")
# Always show warnings for project code
projenv.ProcessUnFlags("-w")
# 2.4.0 and up
# XXX: note that this will also break %d format with floats and print raw memory contents as int
# Cores after 2.3.0 can disable %f in the printf / scanf to reduce .bin size
remove_float_support(env)
ldscripts_inject_libpath(env)


Loading…
Cancel
Save