Hi every one,
I need some help for my school project. I need to convert a char to a string but I don't understant what I found on Google...
I need to convert the char name "firstpart" to string to send it to my HCI.
Can you help me ? I put my code below
Thanks
 if(rf95.recv(buf, &len))
      {
       message = (char*)buf;  //mon message est stocké dans cette variable
       Serial.print("message : ");
       Serial.println(message);
       char firstpart[3];
       firstpart[0] = message[0];
       firstpart[1] = message[1];
       firstpart[2] = 0;
      Â
       Serial.print("first : ");
       Serial.println(firstpart);