Fix AWS related core 2.3.0 compile error

Fix AWS related core 2.3.0 compile error
This commit is contained in:
Theo Arends 2019-06-06 15:20:20 +02:00
parent 6a5ea7a9c6
commit 8626304165
2 changed files with 12 additions and 0 deletions

View File

@ -17,6 +17,9 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <my_user_config.h>
#ifdef USE_MQTT_AWS_IOT
#include <bearssl/bearssl.h>
#include <pgmspace.h>
@ -145,3 +148,5 @@ const br_ec_private_key *AWS_IoT_Private_Key = &EC;
const br_x509_certificate *AWS_IoT_Client_Certificate = &CHAIN[0];
}
#endif // USE_MQTT_AWS_IOT

View File

@ -46,6 +46,13 @@ void KNX_CB_Action(message_t const &msg, void *arg);
* Default global defines
\*********************************************************************************************/
#ifdef USE_MQTT_AWS_IOT
#include <core_version.h>
#ifndef ARDUINO_ESP8266_RELEASE_2_5_2
#error "USE_MQTT_AWS_IOT is only supported on core version 2.5.2"
#endif
#endif
#if defined(USE_MQTT_TLS) || defined(USE_MQTT_AWS_IOT)
const uint16_t WEB_LOG_SIZE = 2000; // Max number of characters in weblog
#else