Arduino String‘iniz varsa:
arduino_string_example.cpp
String arduinoStr = "test123";şunu kullanarak kolayca std::string‘e dönüştürebilirsiniz:
arduino_to_stdstring.cpp
std::string stdStr(arduinoStr.c_str(), arduinoStr.length());std::string yapıcısı veriyi kopyalar, bu nedenle Arduino String örneğini güvenle serbest bırakabilirsiniz.
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow