Skip to content

Commit a617fc9

Browse files
committed
Fixed ESP8266 ethernet compilation issue.
1 parent 3fa5e81 commit a617fc9

File tree

7 files changed

+35
-19
lines changed

7 files changed

+35
-19
lines changed

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Firebase Arduino Client Library for ESP8266 and ESP32",
3-
"version": "4.0.2",
3+
"version": "4.0.3",
44
"keywords": "communication, REST, esp32, esp8266, arduino",
55
"description": "The library supports Firebase products e.g. Realtime database, Cloud Firestore database, Firebase Storage and Google Cloud Storage, Cloud Functions for Firebase and Cloud Messaging. The library also supported other Arduino devices using Clients interfaces e.g. WiFiClient, EthernetClient, and GSMClient.",
66
"repository": {

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name=Firebase Arduino Client Library for ESP8266 and ESP32
22

3-
version=4.0.2
3+
version=4.0.3
44

55
author=Mobizt
66

src/Firebase.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* The Firebase class, Firebase.cpp v1.1.1
2+
* The Firebase class, Firebase.cpp v1.1.2
33
*
44
* Created July 10, 2022
55
*
@@ -663,15 +663,19 @@ bool FIREBASE_CLASS::sdBegin(SdSpiConfig *sdFatSPIConfig, int8_t ss, int8_t sck,
663663
{
664664
return mbfs->sdFatBegin(sdFatSPIConfig, ss, sck, miso, mosi);
665665
}
666+
667+
bool FIREBASE_CLASS::sdBegin(SdioConfig *sdFatSDIOConfig)
668+
{
669+
return mbfs->sdFatBegin(sdFatSDIOConfig);
670+
}
666671
#endif
667672

668673
#endif
669674

670-
#if defined(ESP8266) && defined(MBFS_SD_FS) && defined(MBFS_CARD_TYPE_SD_MMC)
675+
#if defined(ESP32) && defined(MBFS_SD_FS) && defined(MBFS_CARD_TYPE_SD_MMC)
671676

672677
bool FIREBASE_CLASS::sdMMCBegin(const char *mountpoint, bool mode1bit, bool format_if_mount_failed)
673678
{
674-
675679
return mbfs->sdMMCBegin(mountpoint, mode1bit, format_if_mount_failed);
676680
}
677681

src/Firebase.h

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
/**
3-
* The Firebase class, Firebase.h v1.1.1
3+
* The Firebase class, Firebase.h v1.1.2
44
*
55
* Created July 10, 2022
66
*
@@ -2344,7 +2344,7 @@ class FIREBASE_CLASS
23442344

23452345
#if defined(MBFS_SD_FS) && defined(MBFS_CARD_TYPE_SD)
23462346

2347-
/** SD card config with GPIO pins.
2347+
/** Initiate SD card with SPI port configuration.
23482348
*
23492349
* @param ss SPI Chip/Slave Select pin.
23502350
* @param sck SPI Clock pin.
@@ -2357,7 +2357,7 @@ class FIREBASE_CLASS
23572357

23582358
#if defined(ESP8266)
23592359

2360-
/** SD card config with SD FS configurations (ESP8266 only).
2360+
/** Initiate SD card with SD FS configurations (ESP8266 only).
23612361
*
23622362
* @param ss SPI Chip/Slave Select pin.
23632363
* @param sdFSConfig The pointer to SDFSConfig object (ESP8266 only).
@@ -2368,17 +2368,18 @@ class FIREBASE_CLASS
23682368
#endif
23692369

23702370
#if defined(ESP32)
2371-
/** SD card config with chip select and SPI configuration (ESP32 only).
2371+
/** Initiate SD card with chip select and SPI configuration (ESP32 only).
23722372
*
23732373
* @param ss SPI Chip/Slave Select pin.
2374-
* @param frequency The SPI frequency (ESP32 only)
2374+
* @param spiConfig The pointer to SPIClass object for SPI configuartion.
2375+
* @param frequency The SPI frequency.
23752376
* @return Boolean type status indicates the success of the operation.
23762377
*/
23772378
bool sdBegin(int8_t ss, SPIClass *spiConfig = nullptr, uint32_t frequency = 4000000);
23782379
#endif
23792380

23802381
#if defined(MBFS_ESP32_SDFAT_ENABLED) || defined(MBFS_SDFAT_ENABLED)
2381-
/** SD card config with SdFat SPI and pins configurations (ESP32 with SdFat included only).
2382+
/** Initiate SD card with SdFat SPI and pins configurations (with SdFat included only).
23822383
*
23832384
* @param sdFatSPIConfig The pointer to SdSpiConfig object for SdFat SPI configuration.
23842385
* @param ss SPI Chip/Slave Select pin.
@@ -2388,6 +2389,14 @@ class FIREBASE_CLASS
23882389
* @return Boolean type status indicates the success of the operation.
23892390
*/
23902391
bool sdBegin(SdSpiConfig *sdFatSPIConfig, int8_t ss = -1, int8_t sck = -1, int8_t miso = -1, int8_t mosi = -1);
2392+
2393+
/** Initiate SD card with SdFat SDIO configuration (with SdFat included only).
2394+
*
2395+
* @param sdFatSDIOConfig The pointer to SdioConfig object for SdFat SDIO configuration.
2396+
* @return Boolean type status indicates the success of the operation.
2397+
*/
2398+
bool sdBegin(SdioConfig *sdFatSDIOConfig);
2399+
23912400
#endif
23922401

23932402
#endif

src/Firebase_ESP_Client.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
#ifndef FIREBASE_CLIENT_VERSION
2-
#define FIREBASE_CLIENT_VERSION "4.0.2"
2+
#define FIREBASE_CLIENT_VERSION "4.0.3"
33
#endif
44

55
/**
6-
* Google's Firebase ESP Client Main class, Firebase_ESP_Client.h v4.0.2
6+
* Google's Firebase ESP Client Main class, Firebase_ESP_Client.h v4.0.3
77
*
88
* This library supports Espressif ESP8266 and ESP32 MCUs
99
*
1010
* Created July 10, 2022
1111
*
1212
* Updates:
13-
* - Fixed ESP8266 W5100 and W5500 ethernet modules compilation errors.
13+
* - Fixed ESP8266 Ethernet W5100 compilation error.
14+
* - Add ESP8266 W5100 Ethernet options to prevent compilation error in PlatformIO.
15+
* - Rename MillisTimer class to MB_MillisTimer to prevent compilation error in Teensy.
16+
* - Add support SdFat SDIO interface.
1417
*
1518
*
1619
* This work is a part of Firebase ESP Client library

src/wcs/esp32/FB_TCP_Client.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* Firebase TCP Client v1.1.21
2+
* Firebase TCP Client v1.1.22
33
*
4-
* Created June 13, 2022
4+
* Created July 10, 2022
55
*
66
* The MIT License (MIT)
77
* Copyright (c) 2022 K. Suwatchai (Mobizt)

src/wcs/esp32/FB_TCP_Client.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* Firebase TCP Client v1.1.21
2+
* Firebase TCP Client v1.1.22
33
*
4-
* Created June 13, 2022
4+
* Created July 10, 2022
55
*
66
* The MIT License (MIT)
77
* Copyright (c) 2022 K. Suwatchai (Mobizt)
@@ -33,7 +33,7 @@
3333

3434
#if defined(ESP32) && !defined(ENABLE_EXTERNAL_CLIENT)
3535

36-
#include "FB_Net.h"
36+
#include "FB_Network.h"
3737
#include "FB_Error.h"
3838
#include "mbfs/MB_FS.h"
3939
#include "./wcs/base/FB_TCP_Client_Base.h"

0 commit comments

Comments
 (0)