إذا كان لديك String في Arduino:
arduino_string_example.cpp
String arduinoStr = "test123";يمكنك تحويلها بسهولة إلى std::string باستخدام:
arduino_to_stdstring.cpp
std::string stdStr(arduinoStr.c_str(), arduinoStr.length());مُنشئ std::string سينسخ البيانات، لذا يمكنك تحرير نسخة String الخاصة بـ Arduino بأمان.
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow