Serial communication between Esp32 and Arduino one

I want to establish serial communication between Arduino and ESP32. I want to transfer sensor data from Arduino to ESP32, then store it in variables on ESP32 and send it to Firebase. I'd like to know if anyone has done this. Can you help me with how to assign an ID address to the serial data? So I can direct it to the corresponding variables.

Why not send the data from the sensors all in one message?

No problem, call it "This Data" or "That Data". You could tokenize it. At this point I have no idea how to do what you want because you are about as clear as mud. Tell us what the data is, how far it has to go, how fast do you need to send it, etc. I use CAN for my system. Here are some links that will help you get familiar with the different serial communication types and protocols.

@josuuuuu12 ,

Your topic was moved to its current location as it is more suitable.

Could you also take a few moments to Learn How To Use The Forum.

It will help you get the best out of the forum in the future.

Thank you

For the serial communications part here is a really good tutorial:

I can't help with the Firebase part, sorry.

1 Like

The library I installed for Firebase is very large. I installed it on my ESP32 and it takes up 97% of my memory. Does anyone know of another library for sending data to Firebase that uses less storage?

The blink sketch on an ESP32 uses 22% of the PGM space; the addition of Firebase uses 66%. Now change the Partition scheme and maybe the Flash/Total memory scheme. I got it down to 27% by choosing Huge App

@josuuuuu12 ,

I've merged your 2 topics are they are pretty much all the same subject, you are doing a project involving Firebase and an ESP32, so your questions are closely related. Please keep everything together. This advice and a lot more is in the forum guide, please read it.

Thank you.