Closed petkomatus closed 3 years ago
I don't see any problem. If you want to construct string from hard code the character inside quotes e.g. "your string" and your string contains quote " you should make a escape string by place \ before " e.g.
String str = "abcde \"fghi\" jklmn";
It will interpret as abcde "fghi" jklmn.
i need to send to firebase in this shape
You should search Google for escape sequence string.
Test it by print to serial before sending.
String s1 = "\"Arduino\nESP32\"";
Serial.println(s1)
This will pint
\"Arduino
ESP32\"
String s2 = "\\\"Arduino\\nESP32\\\"";
Serial.println(s2)
This will pint
\"Arduino\nESP32\\"
well thank you
Can you help me send a message to Firebase.setString (fbdo, "message", "/"Arduino\nESP32/"");
i don't know about the top ride
Well thank you