Connecting Arduino Node-MCU with Google Firebase Using Arduino IDEIs it safe to expose Firebase apiKey to the public?Arduino BLE multiple definitionFTP client on ethernet shield arduinoNodemcu and Firebase connection errorConnect Arduino Mega to FirebaseNode MCU(ESP 8266) with firebaseConnecting Sparkfun ESP8266 Thing to Azure IoT HubError while trying to upload code to NodeMcu that will let me control a LED MatrixNode MCU failed to connect with firebase but does not return any error codeFirebaseArduino.h:20:18: fatal error: string: No such file or directory (Arduino)
Can the electrostatic force be infinite in magnitude?
Left multiplication is homeomorphism of topological groups
Is there any significance to the Valyrian Stone vault door of Qarth?
Can somebody explain Brexit in a few child-proof sentences?
Can a Bard use an arcane focus?
A social experiment. What is the worst that can happen?
Giant Toughroad SLR 2 for 200 miles in two days, will it make it?
Identify a stage play about a VR experience in which participants are encouraged to simulate performing horrific activities
What does the "3am" section means in manpages?
Organic chemistry Iodoform Reaction
What should I use for Mishna study?
You're three for three
Female=gender counterpart?
QGIS Geometry Generator Line Type
Superhero words!
How to open new tab in existing terminal instead of new terminal instance?
Is it okay / does it make sense for another player to join a running game of Munchkin?
Is there a smaller tautogram checker?
Teaching indefinite integrals that require special-casing
Greatest common substring
What would you call a finite collection of unordered objects that are not necessarily distinct?
What if somebody invests in my application?
What (else) happened July 1st 1858 in London?
Hostile work environment after whistle-blowing on coworker and our boss. What do I do?
Connecting Arduino Node-MCU with Google Firebase Using Arduino IDE
Is it safe to expose Firebase apiKey to the public?Arduino BLE multiple definitionFTP client on ethernet shield arduinoNodemcu and Firebase connection errorConnect Arduino Mega to FirebaseNode MCU(ESP 8266) with firebaseConnecting Sparkfun ESP8266 Thing to Azure IoT HubError while trying to upload code to NodeMcu that will let me control a LED MatrixNode MCU failed to connect with firebase but does not return any error codeFirebaseArduino.h:20:18: fatal error: string: No such file or directory (Arduino)
this is my code :
//
// Copyright 2015 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// FirebaseDemo_ESP8266 is a sample that demo the different functions
// of the FirebaseArduino API.
#include <ESP8266WiFi.h>
#include <FirebaseArduino.h>
// Set these to run example.
#define FIREBASE_HOST "EXAMPLE-12345.firebaseio.com"
#define FIREBASE_AUTH "secret"
#define WIFI_SSID "SSID"
#define WIFI_PASSWORD "PWD"
void setup()
Serial.begin(9600);
// connect to wifi.
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
Serial.print("connecting");
while (WiFi.status() != WL_CONNECTED)
Serial.print(".");
delay(500);
Serial.println();
Serial.print("connected: ");
Serial.println(WiFi.localIP());
Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
int n = 0;
void loop()
// set value
Firebase.setFloat("number", 42.0);
// handle error
if (Firebase.failed())
Serial.print("setting /number failed:");
Serial.println(Firebase.error());
return;
delay(1000);
// update value
Firebase.setFloat("number", 43.0);
// handle error
if (Firebase.failed())
Serial.print("setting /number failed:");
Serial.println(Firebase.error());
return;
delay(1000);
// get value
Serial.print("number: ");
Serial.println(Firebase.getFloat("number"));
delay(1000);
// remove value
Firebase.remove("number");
delay(1000);
// set string value
Firebase.setString("message", "hello world");
// handle error
if (Firebase.failed())
Serial.print("setting /message failed:");
Serial.println(Firebase.error());
return;
delay(1000);
// set bool value
Firebase.setBool("truth", false);
// handle error
if (Firebase.failed())
Serial.print("setting /truth failed:");
Serial.println(Firebase.error());
return;
delay(1000);
// append a new value to /logs
String name = Firebase.pushInt("logs", n++);
// handle error
if (Firebase.failed())
Serial.print("pushing /logs failed:");
Serial.println(Firebase.error());
return;
Serial.print("pushed: /logs/");
Serial.println(name);
delay(1000);
and this is my error:
**Arduino: 1.8.5 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"
Build options changed, rebuilding all
In file included from C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/Firebase.h:30:0,
from C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/FirebaseArduino.h:22,
from C:UsersASUSDocumentsArduinolibrariesfirebase-arduino-masterexamplesFirebaseDemo_ESP8266FirebaseDemo_ESP8266.ino:21:
C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/FirebaseObject.h:109:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
std::shared_ptr> buffer_;
^
In file included from C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/FirebaseArduino.h:22:0,
from C:UsersASUSDocumentsArduinolibrariesfirebase-arduino-masterexamplesFirebaseDemo_ESP8266FirebaseDemo_ESP8266.ino:21:
C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/Firebase.h:86:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
std::shared_ptr> buffer_;
^
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).**
please help me!
thank you!
firebase arduino nodemcu
add a comment |
this is my code :
//
// Copyright 2015 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// FirebaseDemo_ESP8266 is a sample that demo the different functions
// of the FirebaseArduino API.
#include <ESP8266WiFi.h>
#include <FirebaseArduino.h>
// Set these to run example.
#define FIREBASE_HOST "EXAMPLE-12345.firebaseio.com"
#define FIREBASE_AUTH "secret"
#define WIFI_SSID "SSID"
#define WIFI_PASSWORD "PWD"
void setup()
Serial.begin(9600);
// connect to wifi.
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
Serial.print("connecting");
while (WiFi.status() != WL_CONNECTED)
Serial.print(".");
delay(500);
Serial.println();
Serial.print("connected: ");
Serial.println(WiFi.localIP());
Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
int n = 0;
void loop()
// set value
Firebase.setFloat("number", 42.0);
// handle error
if (Firebase.failed())
Serial.print("setting /number failed:");
Serial.println(Firebase.error());
return;
delay(1000);
// update value
Firebase.setFloat("number", 43.0);
// handle error
if (Firebase.failed())
Serial.print("setting /number failed:");
Serial.println(Firebase.error());
return;
delay(1000);
// get value
Serial.print("number: ");
Serial.println(Firebase.getFloat("number"));
delay(1000);
// remove value
Firebase.remove("number");
delay(1000);
// set string value
Firebase.setString("message", "hello world");
// handle error
if (Firebase.failed())
Serial.print("setting /message failed:");
Serial.println(Firebase.error());
return;
delay(1000);
// set bool value
Firebase.setBool("truth", false);
// handle error
if (Firebase.failed())
Serial.print("setting /truth failed:");
Serial.println(Firebase.error());
return;
delay(1000);
// append a new value to /logs
String name = Firebase.pushInt("logs", n++);
// handle error
if (Firebase.failed())
Serial.print("pushing /logs failed:");
Serial.println(Firebase.error());
return;
Serial.print("pushed: /logs/");
Serial.println(name);
delay(1000);
and this is my error:
**Arduino: 1.8.5 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"
Build options changed, rebuilding all
In file included from C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/Firebase.h:30:0,
from C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/FirebaseArduino.h:22,
from C:UsersASUSDocumentsArduinolibrariesfirebase-arduino-masterexamplesFirebaseDemo_ESP8266FirebaseDemo_ESP8266.ino:21:
C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/FirebaseObject.h:109:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
std::shared_ptr> buffer_;
^
In file included from C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/FirebaseArduino.h:22:0,
from C:UsersASUSDocumentsArduinolibrariesfirebase-arduino-masterexamplesFirebaseDemo_ESP8266FirebaseDemo_ESP8266.ino:21:
C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/Firebase.h:86:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
std::shared_ptr> buffer_;
^
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).**
please help me!
thank you!
firebase arduino nodemcu
Looks like the error is telling you to upgrade to ArduinoJson 6. Did you try that?
– Johnny Mopp
Mar 21 at 14:46
yes i already installed 6.9.1
– Kãvîñdū Tîssêrã
Mar 21 at 14:58
add a comment |
this is my code :
//
// Copyright 2015 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// FirebaseDemo_ESP8266 is a sample that demo the different functions
// of the FirebaseArduino API.
#include <ESP8266WiFi.h>
#include <FirebaseArduino.h>
// Set these to run example.
#define FIREBASE_HOST "EXAMPLE-12345.firebaseio.com"
#define FIREBASE_AUTH "secret"
#define WIFI_SSID "SSID"
#define WIFI_PASSWORD "PWD"
void setup()
Serial.begin(9600);
// connect to wifi.
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
Serial.print("connecting");
while (WiFi.status() != WL_CONNECTED)
Serial.print(".");
delay(500);
Serial.println();
Serial.print("connected: ");
Serial.println(WiFi.localIP());
Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
int n = 0;
void loop()
// set value
Firebase.setFloat("number", 42.0);
// handle error
if (Firebase.failed())
Serial.print("setting /number failed:");
Serial.println(Firebase.error());
return;
delay(1000);
// update value
Firebase.setFloat("number", 43.0);
// handle error
if (Firebase.failed())
Serial.print("setting /number failed:");
Serial.println(Firebase.error());
return;
delay(1000);
// get value
Serial.print("number: ");
Serial.println(Firebase.getFloat("number"));
delay(1000);
// remove value
Firebase.remove("number");
delay(1000);
// set string value
Firebase.setString("message", "hello world");
// handle error
if (Firebase.failed())
Serial.print("setting /message failed:");
Serial.println(Firebase.error());
return;
delay(1000);
// set bool value
Firebase.setBool("truth", false);
// handle error
if (Firebase.failed())
Serial.print("setting /truth failed:");
Serial.println(Firebase.error());
return;
delay(1000);
// append a new value to /logs
String name = Firebase.pushInt("logs", n++);
// handle error
if (Firebase.failed())
Serial.print("pushing /logs failed:");
Serial.println(Firebase.error());
return;
Serial.print("pushed: /logs/");
Serial.println(name);
delay(1000);
and this is my error:
**Arduino: 1.8.5 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"
Build options changed, rebuilding all
In file included from C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/Firebase.h:30:0,
from C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/FirebaseArduino.h:22,
from C:UsersASUSDocumentsArduinolibrariesfirebase-arduino-masterexamplesFirebaseDemo_ESP8266FirebaseDemo_ESP8266.ino:21:
C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/FirebaseObject.h:109:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
std::shared_ptr> buffer_;
^
In file included from C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/FirebaseArduino.h:22:0,
from C:UsersASUSDocumentsArduinolibrariesfirebase-arduino-masterexamplesFirebaseDemo_ESP8266FirebaseDemo_ESP8266.ino:21:
C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/Firebase.h:86:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
std::shared_ptr> buffer_;
^
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).**
please help me!
thank you!
firebase arduino nodemcu
this is my code :
//
// Copyright 2015 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// FirebaseDemo_ESP8266 is a sample that demo the different functions
// of the FirebaseArduino API.
#include <ESP8266WiFi.h>
#include <FirebaseArduino.h>
// Set these to run example.
#define FIREBASE_HOST "EXAMPLE-12345.firebaseio.com"
#define FIREBASE_AUTH "secret"
#define WIFI_SSID "SSID"
#define WIFI_PASSWORD "PWD"
void setup()
Serial.begin(9600);
// connect to wifi.
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
Serial.print("connecting");
while (WiFi.status() != WL_CONNECTED)
Serial.print(".");
delay(500);
Serial.println();
Serial.print("connected: ");
Serial.println(WiFi.localIP());
Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
int n = 0;
void loop()
// set value
Firebase.setFloat("number", 42.0);
// handle error
if (Firebase.failed())
Serial.print("setting /number failed:");
Serial.println(Firebase.error());
return;
delay(1000);
// update value
Firebase.setFloat("number", 43.0);
// handle error
if (Firebase.failed())
Serial.print("setting /number failed:");
Serial.println(Firebase.error());
return;
delay(1000);
// get value
Serial.print("number: ");
Serial.println(Firebase.getFloat("number"));
delay(1000);
// remove value
Firebase.remove("number");
delay(1000);
// set string value
Firebase.setString("message", "hello world");
// handle error
if (Firebase.failed())
Serial.print("setting /message failed:");
Serial.println(Firebase.error());
return;
delay(1000);
// set bool value
Firebase.setBool("truth", false);
// handle error
if (Firebase.failed())
Serial.print("setting /truth failed:");
Serial.println(Firebase.error());
return;
delay(1000);
// append a new value to /logs
String name = Firebase.pushInt("logs", n++);
// handle error
if (Firebase.failed())
Serial.print("pushing /logs failed:");
Serial.println(Firebase.error());
return;
Serial.print("pushed: /logs/");
Serial.println(name);
delay(1000);
and this is my error:
**Arduino: 1.8.5 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"
Build options changed, rebuilding all
In file included from C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/Firebase.h:30:0,
from C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/FirebaseArduino.h:22,
from C:UsersASUSDocumentsArduinolibrariesfirebase-arduino-masterexamplesFirebaseDemo_ESP8266FirebaseDemo_ESP8266.ino:21:
C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/FirebaseObject.h:109:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
std::shared_ptr> buffer_;
^
In file included from C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/FirebaseArduino.h:22:0,
from C:UsersASUSDocumentsArduinolibrariesfirebase-arduino-masterexamplesFirebaseDemo_ESP8266FirebaseDemo_ESP8266.ino:21:
C:UsersASUSDocumentsArduinolibrariesFirebaseArduinosrc/Firebase.h:86:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
std::shared_ptr> buffer_;
^
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).**
please help me!
thank you!
firebase arduino nodemcu
firebase arduino nodemcu
asked Mar 21 at 14:40
Kãvîñdū TîssêrãKãvîñdū Tîssêrã
85
85
Looks like the error is telling you to upgrade to ArduinoJson 6. Did you try that?
– Johnny Mopp
Mar 21 at 14:46
yes i already installed 6.9.1
– Kãvîñdū Tîssêrã
Mar 21 at 14:58
add a comment |
Looks like the error is telling you to upgrade to ArduinoJson 6. Did you try that?
– Johnny Mopp
Mar 21 at 14:46
yes i already installed 6.9.1
– Kãvîñdū Tîssêrã
Mar 21 at 14:58
Looks like the error is telling you to upgrade to ArduinoJson 6. Did you try that?
– Johnny Mopp
Mar 21 at 14:46
Looks like the error is telling you to upgrade to ArduinoJson 6. Did you try that?
– Johnny Mopp
Mar 21 at 14:46
yes i already installed 6.9.1
– Kãvîñdū Tîssêrã
Mar 21 at 14:58
yes i already installed 6.9.1
– Kãvîñdū Tîssêrã
Mar 21 at 14:58
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55283004%2fconnecting-arduino-node-mcu-with-google-firebase-using-arduino-ide%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55283004%2fconnecting-arduino-node-mcu-with-google-firebase-using-arduino-ide%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Looks like the error is telling you to upgrade to ArduinoJson 6. Did you try that?
– Johnny Mopp
Mar 21 at 14:46
yes i already installed 6.9.1
– Kãvîñdū Tîssêrã
Mar 21 at 14:58