expected ')'

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
sil
Posts: 22
Joined: 09 Oct 2018 12:35

expected ')'

Post 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 ()
{
}
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: expected ')'

Post by PoltoS »

Serial do not require baudrate as it is over USB. Serial0 and 1 do require it.
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: expected ')'

Post by PoltoS »

Also chat message[] is not valid. Use char *message
Post Reply