Skip to content

Commit

Permalink
Fix Realtime database DatabaseOptions issue #154
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Oct 2, 2024
1 parent c2ad4bf commit 4b171a9
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
14 changes: 11 additions & 3 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.3.11-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.3.12-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-09-19T05:28:10Z`
Revision `2024-10-02T12:03:28Z`

## Table of Contents

Expand Down Expand Up @@ -112,11 +112,14 @@ This [`FirebaseClient`](https://github.com/mobizt/FirebaseClient) library was ct
> [!IMPORTANT]
> For ESP8266 device usage, you should read the [Memory Options for ESP8266](#memory-options-for-esp8266) section for heap selection.
> [!NOTE]
> The Cloud Firestore Database data change listening does not support by REST API.
## Frequently Asked Questions

For the FAQ (Frequently Asked Questions), please visit [here](/FAQ.md).

## Supported Devices.
## Supported Devices

* ESP8266 MCUs based boards
* ESP32 MCUs based boards
Expand All @@ -141,6 +144,11 @@ For the FAQ (Frequently Asked Questions), please visit [here](/FAQ.md).
* SIMCom Modules with [TinyGSM](https://github.com/vshymanskyy/TinyGSM)


# Unsuppored Devices

* All Atmega (AVR) devices


## Dependencies


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.3.11",
"version": "1.3.12",
"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.3.11
version=1.3.12

author=Mobizt

Expand Down
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.3.11"
#define FIREBASE_CLIENT_VERSION "1.3.12"

static void sys_idle()
{
Expand Down
6 changes: 5 additions & 1 deletion src/database/RealtimeDatabase.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Created July 2, 2024
* Created October 2, 2024
*
* The MIT License (MIT)
* Copyright (c) 2024 K. Suwatchai (Mobizt)
Expand Down Expand Up @@ -1044,6 +1044,7 @@ class RealtimeDatabase : public RTDBResultBase
void addParams(bool hasQueryParams, String &extras, async_request_handler_t::http_request_method method, DatabaseOptions *options, bool isFile)
{
URLUtil uut;
bool hasParam = hasQueryParams;

if (options)
{
Expand All @@ -1060,7 +1061,10 @@ class RealtimeDatabase : public RTDBResultBase
uut.addParam(extras, "print", "silent", hasQueryParams, true);

if (options && options->filter.complete)
{
options->filter.uri[0] = !hasParam ? '?' : '&';
extras += options->filter.uri;
}
}

void setClientError(async_request_data_t &request, int code)
Expand Down

0 comments on commit 4b171a9

Please sign in to comment.