expected initializer before 'strcpy'

Hi there! I am facing this error in my coding.
Below is the related part of the error.

void loop()
{
Serial.println("Sending to rf95_server");
// Send a message to rf95_server

char radiopacket [32]
strcpy (radiopacket, "Q"); <<< this line
strcat (radiopacket,",");
sprintf (x,"%d", node);
strcat (radiopacket,x);
strcat (radiopacket, ",");
strcat (radiopacket, des_ID);
strcat (radiopacket,",");
strcat (radiopacket, "Hello");
strcat (radiopacket, ",");

It would be great if someone can point out the mistake.Thanks!

  char radiopacket [32]

This line is missing the closing ';'.

Ya, I noticed that too! Thanks!!

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