Skip to content

Commit 766c4df

Browse files
committed
Fix Raspberry Pi Pico compilation error
1 parent d7fcce6 commit 766c4df

File tree

7 files changed

+28
-12
lines changed

7 files changed

+28
-12
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
![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)
44

5-
![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)
5+
![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)
66

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

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

1111
## Table of Contents
1212

library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "FirebaseClient",
3-
"version": "1.4.3",
3+
"version": "1.4.4",
44
"keywords": "communication, REST, esp32, esp8266, arduino",
55
"description": "Async Firebase Client library for Arduino.",
66
"repository": {

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name=FirebaseClient
22

3-
version=1.4.3
3+
version=1.4.4
44

55
author=Mobizt
66

src/client/SSLClient/client/BSSL_SSL_Client.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* BSSL_SSL_Client library v1.0.14 for Arduino devices.
2+
* BSSL_SSL_Client library v1.0.17 for Arduino devices.
33
*
4-
* Created June 27, 2024
4+
* Created October 29, 2024
55
*
66
* This work contains codes based on WiFiClientSecure from Earle F. Philhower and SSLClient from OSU OPEnS Lab.
77
*
@@ -30,7 +30,6 @@
3030
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
3131
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3232
*/
33-
3433
#ifndef BSSL_SSL_CLIENT_CPP
3534
#define BSSL_SSL_CLIENT_CPP
3635

@@ -1470,7 +1469,7 @@ int BSSL_SSL_Client::mConnectSSL(const char *host)
14701469
#else
14711470
#define CRTSTORECOND
14721471
#endif
1473-
if (!_use_insecure && !_use_fingerprint && !_use_self_signed && !_knownkey CRTSTORECOND && !_ta)
1472+
if (!_use_insecure && !_use_fingerprint && !_use_self_signed && !_knownkey CRTSTORECOND && !_ta && !_esp32_ta)
14741473
{
14751474
esp_ssl_debug_print(PSTR("Connection *will* fail, no authentication method is setup."), _debug_level, esp_ssl_debug_warn, __func__);
14761475
}

src/client/SSLClient/client/BSSL_SSL_Client.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* BSSL_SSL_Client library v1.0.14 for Arduino devices.
2+
* BSSL_SSL_Client library v1.0.17 for Arduino devices.
33
*
4-
* Created June 27, 2024
4+
* Created October 29, 2024
55
*
66
* This work contains codes based on WiFiClientSecure from Earle F. Philhower and SSLClient from OSU OPEnS Lab.
77
*
@@ -40,7 +40,7 @@
4040
#include "../ESP_SSLClient_FS.h"
4141
#include "../ESP_SSLClient_Const.h"
4242

43-
#if defined(USE_EMBED_SSL_ENGINE)
43+
#if defined(USE_EMBED_SSL_ENGINE) && !defined(ARDUINO_ARCH_RP2040) && !defined(ARDUINO_NANO_RP2040_CONNECT)
4444
#define EMBED_SSL_ENGINE_BASE_OVERRIDE override
4545
#else
4646
#define EMBED_SSL_ENGINE_BASE_OVERRIDE
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
// _gettimeofday link missing in STM32
3+
4+
#if !defined(STM32_TIME_FIX_C) && defined(ARDUINO_ARCH_STM32)
5+
#define STM32_TIME_FIX_C
6+
7+
#include <sys/time.h>
8+
9+
__attribute__((weak)) int _gettimeofday(struct timeval *tv, void *ignore __attribute__((unused)))
10+
{
11+
uint64_t t = 0;
12+
tv->tv_sec = t / 1000000000;
13+
tv->tv_usec = (t % 1000000000) / 1000;
14+
return 0;
15+
}
16+
17+
#endif

src/core/Core.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#undef FIREBASE_CLIENT_VERSION
88
#endif
99

10-
#define FIREBASE_CLIENT_VERSION "1.4.3"
10+
#define FIREBASE_CLIENT_VERSION "1.4.4"
1111

1212
static void sys_idle()
1313
{

0 commit comments

Comments
 (0)