Skip to content

Commit

Permalink
Update FirebaseJson.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Mar 25, 2024
1 parent 6fd8941 commit d4f9118
Show file tree
Hide file tree
Showing 10 changed files with 147 additions and 135 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ESP-Google-Sheet-Client",
"version": "1.4.3",
"version": "1.4.4",
"keywords": "communication, REST, esp32, esp8266, raspberrypi, arduino",
"description": "Arduino Google Sheet REST client library for Arduino devices. This library allows devices to communicate with Google Sheet API to read, edit and delete the spreadsheets",
"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=ESP-Google-Sheet-Client

version=1.4.3
version=1.4.4

author=Mobizt

Expand Down
4 changes: 2 additions & 2 deletions src/ESP_Google_Sheet_Client.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#ifndef ESP_GOOGLE_SHEET_CLIENT_VERSION
#define ESP_GOOGLE_SHEET_CLIENT_VERSION "1.4.3"
#define ESP_GOOGLE_SHEET_CLIENT_VERSION "1.4.4"
#endif

/**
* Google Sheet Client, ESP_Google_Sheet_Client.h v1.4.3
*
* This library supports Espressif ESP8266 and ESP32 MCUs
*
* Created November 10, 2023
* Created March 25, 2023
*
* The MIT License (MIT)
* Copyright (c) 2023 K. Suwatchai (Mobizt)
Expand Down
6 changes: 5 additions & 1 deletion src/client/GS_TCP_Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
#include "../GS_Const.h"
#include "../mbfs/MB_FS.h"
#include "../GS_Helper.h"
#include "../client/SSLClient/ESP_SSLClient.h"
#if __has_include(<ESP_SSLClient.h>)
#include <ESP_SSLClient.h>
#else
#include "./client/SSLClient/ESP_SSLClient.h"
#endif
#include "../GS_Network.h"

#if defined(ESP32)
Expand Down
10 changes: 0 additions & 10 deletions src/json/FBJS_Config.h

This file was deleted.

7 changes: 5 additions & 2 deletions src/json/FirebaseJson.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* FirebaseJson, version 3.0.6
* FirebaseJson, version 3.0.10
*
* The Easiest Arduino library to parse, create and edit JSON object using a relative path.
*
* Created March 5, 2023
* Created March 25, 2024
*
* Features
* - Using path to access node element in search style e.g. json.get(result,"a/b/c")
Expand Down Expand Up @@ -456,6 +456,9 @@ void FirebaseJsonBase::mCollectIterator(MB_JSON *e, int type, int &arrIndex)
char *p = MB_JSON_PrintUnformatted(e);
if (p)
{
if (result.ofs1 == 0)
result.ofs1 = iterator_data.buf_offset;

int i = iterator_data.buf_offset;
size_t pos = buf.find(p, i);
if (pos != MB_String::npos)
Expand Down
Loading

0 comments on commit d4f9118

Please sign in to comment.