Skip to content

Commit

Permalink
Fix Raspberry Pi Pico compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Oct 29, 2024
1 parent d7fcce6 commit 766c4df
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/mobizt/FirebaseClient/.github%2Fworkflows%2Fcompile_library.yml?logo=github&label=compile) [![Github Stars](https://img.shields.io/github/stars/mobizt/FirebaseClient?logo=github)](https://github.com/mobizt/FirebaseClient/stargazers) ![Github Issues](https://img.shields.io/github/issues/mobizt/FirebaseClient?logo=github)

![GitHub Release](https://img.shields.io/github/v/release/mobizt/FirebaseClient) ![Arduino](https://img.shields.io/badge/Arduino-v1.4.3-57C207?logo=arduino) ![PlatformIO](https://badges.registry.platformio.org/packages/mobizt/library/FirebaseClient.svg) ![GitHub Release Date](https://img.shields.io/github/release-date/mobizt/FirebaseClient)
![GitHub Release](https://img.shields.io/github/v/release/mobizt/FirebaseClient) ![Arduino](https://img.shields.io/badge/Arduino-v1.4.4-57C207?logo=arduino) ![PlatformIO](https://badges.registry.platformio.org/packages/mobizt/library/FirebaseClient.svg) ![GitHub Release Date](https://img.shields.io/github/release-date/mobizt/FirebaseClient)

[![GitHub Sponsors](https://img.shields.io/github/sponsors/mobizt?logo=github)](https://github.com/sponsors/mobizt)

Revision `2024-10-29T02:35:03Z`
Revision `2024-10-29T03:25:19Z`

## Table of Contents

Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "FirebaseClient",
"version": "1.4.3",
"version": "1.4.4",
"keywords": "communication, REST, esp32, esp8266, arduino",
"description": "Async Firebase Client library for Arduino.",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name=FirebaseClient

version=1.4.3
version=1.4.4

author=Mobizt

Expand Down
7 changes: 3 additions & 4 deletions src/client/SSLClient/client/BSSL_SSL_Client.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* BSSL_SSL_Client library v1.0.14 for Arduino devices.
* BSSL_SSL_Client library v1.0.17 for Arduino devices.
*
* Created June 27, 2024
* Created October 29, 2024
*
* This work contains codes based on WiFiClientSecure from Earle F. Philhower and SSLClient from OSU OPEnS Lab.
*
Expand Down Expand Up @@ -30,7 +30,6 @@
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

#ifndef BSSL_SSL_CLIENT_CPP
#define BSSL_SSL_CLIENT_CPP

Expand Down Expand Up @@ -1470,7 +1469,7 @@ int BSSL_SSL_Client::mConnectSSL(const char *host)
#else
#define CRTSTORECOND
#endif
if (!_use_insecure && !_use_fingerprint && !_use_self_signed && !_knownkey CRTSTORECOND && !_ta)
if (!_use_insecure && !_use_fingerprint && !_use_self_signed && !_knownkey CRTSTORECOND && !_ta && !_esp32_ta)
{
esp_ssl_debug_print(PSTR("Connection *will* fail, no authentication method is setup."), _debug_level, esp_ssl_debug_warn, __func__);
}
Expand Down
6 changes: 3 additions & 3 deletions src/client/SSLClient/client/BSSL_SSL_Client.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* BSSL_SSL_Client library v1.0.14 for Arduino devices.
* BSSL_SSL_Client library v1.0.17 for Arduino devices.
*
* Created June 27, 2024
* Created October 29, 2024
*
* This work contains codes based on WiFiClientSecure from Earle F. Philhower and SSLClient from OSU OPEnS Lab.
*
Expand Down Expand Up @@ -40,7 +40,7 @@
#include "../ESP_SSLClient_FS.h"
#include "../ESP_SSLClient_Const.h"

#if defined(USE_EMBED_SSL_ENGINE)
#if defined(USE_EMBED_SSL_ENGINE) && !defined(ARDUINO_ARCH_RP2040) && !defined(ARDUINO_NANO_RP2040_CONNECT)
#define EMBED_SSL_ENGINE_BASE_OVERRIDE override
#else
#define EMBED_SSL_ENGINE_BASE_OVERRIDE
Expand Down
17 changes: 17 additions & 0 deletions src/client/SSLClient/client/stm32_time_fix.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

// _gettimeofday link missing in STM32

#if !defined(STM32_TIME_FIX_C) && defined(ARDUINO_ARCH_STM32)
#define STM32_TIME_FIX_C

#include <sys/time.h>

__attribute__((weak)) int _gettimeofday(struct timeval *tv, void *ignore __attribute__((unused)))
{
uint64_t t = 0;
tv->tv_sec = t / 1000000000;
tv->tv_usec = (t % 1000000000) / 1000;
return 0;
}

#endif
2 changes: 1 addition & 1 deletion src/core/Core.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#undef FIREBASE_CLIENT_VERSION
#endif

#define FIREBASE_CLIENT_VERSION "1.4.3"
#define FIREBASE_CLIENT_VERSION "1.4.4"

static void sys_idle()
{
Expand Down

0 comments on commit 766c4df

Please sign in to comment.