Turnin' Const Unsigned Char* to An String

hello, how to convert Const Unsigned Char* to An String all things i found on internet are just doin' compiler errors

const uint8_t uca[] = "Why would you do that?";

String yuck((const char *)uca);

void setup() {
  Serial.begin(115200);
  Serial.println(yuck);
}
void loop() {}
Why would you do that?
3 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.