-
Notifications
You must be signed in to change notification settings - Fork 492
Pro-mini + ESP8266 connection to Firebase #297
Comments
It looks like it errors on missing <string.h>. Any ideas? Trying to run this via ESP thru Pro-mini. |
https://github.com/firebase/firebase-arduino/tree/master/contrib/examples/FirebaseSerialHost_ESP8266 contains the sketch to deploy to the ESP Make sure the TX,RX line of the ESP to the RX,TX line of the Arduino board. You can then make Firebase API call from the Arduino sketch using the Serial protocol defined by @ed7coyne https://raw.githubusercontent.com/firebase/firebase-arduino/7144703dc6269bee4e60b60fa612f41aeeb5a75f/contrib/src/modem/serial_protocol.md
|
@proppy - When I try to compile the sketch before uploading it to the ESP8266 I get the following error: ....fatal error: SerialTransceiver.h: No such file or directory exit status 1 The .h files are located in the repository. Not sure why this is not compiling. |
This might have broken when we moved the file to contrib, as the Can you try to copy the file from https://github.com/firebase/firebase-arduino/tree/master/contrib/src in your sketch directory. |
I have copied all SerialTranceiver.h contents and replaced in the current directory. The same error exists. |
I also tried the commit prior to contrib. That does not work as well. |
The following commits (e1co3 /922cf / 67c88 on contrib branch) on example: FirebaseSerialHost_ESP8266 produced the following error: Arduino: 1.8.5 (Mac OS X), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None" /Users/Documents/Arduino/libraries/firebase-arduino-67c880d543d47612eca34c5a62a18555a3cabf74/src/thing/FireThing.cpp:15:3: error: 'D1' was not declared in this scope The following commit has compiled: 9ae40 I will test and report back. |
I have successfully uploaded the FirebaseSerialHost file to the ESP8266. After the initial upload the board successfully got through the setup() w/ SSID and PASSWORD entered via the sketch. I will connect the Arduino board to the ESP and try to send general protocol commands via the Arduino serial monitor and report back. |
I can not get the ESP to respond to any general protocol items. I tried directly to the ESP with serial monitor and I have also tried through the Arduino Pro-mini. Can you provide some more info on how to get this working? The details on the connections are not that clear. Also, does anyone have any other ideas? |
@jfrankert what happens when you try to talk to the ESP thru the serial port after deploying https://github.com/firebase/firebase-arduino/tree/master/contrib/examples/FirebaseSerialHost_ESP8266 ? By default the serial channel is on pin I think we discussed with @ed7coyne in the past that it might be better to set it on the default channel for better discovery. Can you try to replace |
@proppy When I connect the ESP to an FTDI and upload, the serial monitor will show wifi connected. If I try to run commands through the serial monitor, I get no response. No errors / +OK ...etc. Just to explain a bit better, on the Arduino Pro-Mini I run a sketch like attached: http://www.martyncurrey.com/arduino-to-esp8266-serial-commincation/ I changed the serial channel pins to 2 and 3 based on how I have successfully used the Pro-mini in the past. So on the FirebaseSerialHost sketch this is updated. Yes, I will pull out SoftwareSerial and just use Serial today. I will report back. |
Hi @proppy, I am working on the same issue and I am making some progress. My 'strategy' is to take the modem code you previously did, and adapt it to the new FirebaseArduino.h functions rather than the lower level Firebase.h ones which have evolved in an incompatible way apparently. Using the adapted modem I am able to connect to Firebase and set an integer value --> Good! Now I am trying to replace the previous error handling. I was thinking about using Firebase.available() to replace |
FYI, filed #340 to turn the modem codebase into a simpler sample, which would go in the same direction point ed by @Nerus92 in #297 (comment). |
Is this solution still working?? I think this might solve the problem I am currently experiencing. I am working with an Arduino Mega2560 as the main board and ESP8266 (ESP-01) as the WiFi Module, they communicate using Serial Communication. The library I used to manage the WiFi is "ESPWiFi.h" but I haven't been able to Read/Write data from (to) Firebase because the existing libraries seem to not be compatible with the ATMega2560's architecture... any ideas?? |
I believe Firebase has changed. This was fully working at the time. Let me
know if you do not get it working.
…On Mon, Mar 7, 2022 at 12:36 AM sebasbose ***@***.***> wrote:
Is this solution still working?? I think this might solve the problem I am
currently experiencing. I am working with an Arduino Mega2560 as the main
board and ESP8266 (ESP-01) as the WiFi Module, they communicate using
Serial Communication. The library I used to manage the WiFi is "ESPWiFi.h"
but I haven't been able to Read/Write data from (to) Firebase because the
existing libraries seem to not be compatible with the ATMega2560's
architecture... any ideas??
—
Reply to this email directly, view it on GitHub
<#297 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHX37XXTSYB5ZOMZQ2KNAA3U6WIVZANCNFSM4EDQE4IA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Justin Frankert I VP, Robotics & Automation
Bowery <http://boweryfarming.com/> | *The modern farming company*
What grows here changes everything
Check out our recent press <http://boweryfarming.com/press>. We're hiring
<https://boweryfarming.com/careers/>!
|
Good morning all!
It looks like a similar question was asked a few months back, but has not been closed as complete, so I decided to post one here.
I am trying to connect to Firebase using a Pro-mini connected to a ESP8266. I have successfully connected a ESP8266 directly to my Firebase DB and sent info. Now I want to use the Pro-mini as the main board and send the data this way.
Has anyone done this yet? Sample code? Much appreciated!
The text was updated successfully, but these errors were encountered: