Sorry, maybe someone has a solution, I have a problem with converting strings to char aray
void stringTochar (String text)
{
char * tx = text.c_str ();
}
If compiled on board uno / nano / promini it can work, but if on board esp8266 / esp32 an error appears. What's the difference between c ++ Arduino and esp. Thank you
Code no work on esp
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: Code no work on esp
It would help if you post the error... for now, I think c_str returns a const char *, so the variable you push it in should have the same type.
Who is online
Users browsing this forum: No registered users and 66 guests