Skip to content

Commit

Permalink
Fix Rasperry Pi Pico buit target.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Mar 5, 2023
1 parent 19031a7 commit 315a36f
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 9 deletions.
4 changes: 2 additions & 2 deletions library.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"url": "https://github.com/mobizt/FirebaseJson"
},
"frameworks": "arduino",
"platforms": ["espressif8266", "espressif32","teensy", "atmelsam","ststm32","atmelavr","atmelmegaavr","raspberrypi"],
"version": "3.0.5"
"platforms": ["espressif8266", "espressif32","teensy", "atmelsam","ststm32","atmelavr","atmelmegaavr","rp2040"],
"version": "3.0.6"
}
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name=FirebaseJson

version=3.0.5
version=3.0.6

author=Mobizt

Expand Down
4 changes: 2 additions & 2 deletions src/FirebaseJson.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* FirebaseJson, version 3.0.5
* FirebaseJson, version 3.0.6
*
* The Easiest Arduino library to parse, create and edit JSON object using a relative path.
*
* Created January 20, 2023
* Created March 5, 2023
*
* Features
* - Using path to access node element in search style e.g. json.get(result,"a/b/c")
Expand Down
49 changes: 45 additions & 4 deletions src/FirebaseJson.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* FirebaseJson, version 3.0.5
* FirebaseJson, version 3.0.6
*
* The Easiest Arduino library to parse, create and edit JSON object using a relative path.
*
* Created January 20, 2023
* Created March 5, 2023
*
* Features
* - Using path to access node element in search style e.g. json.get(result,"a/b/c")
Expand Down Expand Up @@ -39,6 +39,47 @@
#ifndef FirebaseJson_H
#define FirebaseJson_H

#include <Arduino.h>

#if defined(ESP8266) || defined(ESP32)
#ifndef MB_ARDUINO_ESP
#define MB_ARDUINO_ESP
#endif
#endif

#if defined(__arm__)
#ifndef MB_ARDUINO_ARM
#define MB_ARDUINO_ARM
#endif
#endif

#if defined(ARDUINO_ARCH_SAMD)
#ifndef MB_ARDUINO_ARCH_SAMD
#define MB_ARDUINO_ARCH_SAMD
#endif
#endif

#if defined(ARDUINO_ARCH_RP2040)

#if defined(ARDUINO_NANO_RP2040_CONNECT)
#ifndef MB_ARDUINO_NANO_RP2040_CONNECT
#define MB_ARDUINO_NANO_RP2040_CONNECT
#endif
#else
#ifndef MB_ARDUINO_PICO
#define MB_ARDUINO_PICO
#endif
#endif

#endif


#if defined(TEENSYDUINO)
#ifndef MB_ARDUINO_TEENSY
#define MB_ARDUINO_TEENSY
#endif
#endif

#if defined __has_include
#if __has_include(<wirish.h>)
#include <wirish.h>
Expand All @@ -63,7 +104,7 @@
#endif
#endif

#include <Arduino.h>

#include <stdio.h>
#include "MB_List.h"

Expand Down Expand Up @@ -761,7 +802,7 @@ class FirebaseJsonBase
}

#if defined(MB_JSON_FS_H)
#if defined(PICO_RP2040)
#if defined(MB_ARDUINO_PICO)
template <typename T>
auto toStringHandler(T &out, bool prettify) -> typename MB_ENABLE_IF<MB_IS_SAME<T, fs::File>::value, bool>::type
{
Expand Down

0 comments on commit 315a36f

Please sign in to comment.