Convert C string to C++ string
simply, using strcpy, and using a char with a given length, works

RTC_DATA_ATTR char ssid["dedicated length"]; 

strcpy(ssid, cSsid->getValue().c_str(), "dedicated length");