Page 1 of 1

expected ')'

Posted: 11 Feb 2019 22:42
by sil
Hi

Got this error: expected ')'
Passing char is the problem. How to solve that ??

Thanks

Code: Select all

void setup()
{
  Serial.begin(9600);
    
    char toSend[8];
  strcpy(toSend, "01234567");  
  sendMessagePacket(toSend);
}




void sendMessagePacket(char message[])
{
  Serial.print("\r\nmessage ");
}

void loop ()
{
}

Re: expected ')'

Posted: 14 Feb 2019 23:05
by PoltoS
Serial do not require baudrate as it is over USB. Serial0 and 1 do require it.

Re: expected ')'

Posted: 14 Feb 2019 23:05
by PoltoS
Also chat message[] is not valid. Use char *message