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 » 11 Feb 2019 22:42

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: 4580
Joined: 26 Jan 2011 19:36

Re: expected ')'

Post by PoltoS » 14 Feb 2019 23:05

Serial do not require baudrate as it is over USB. Serial0 and 1 do require it.

User avatar
PoltoS
Posts: 4580
Joined: 26 Jan 2011 19:36

Re: expected ')'

Post by PoltoS » 14 Feb 2019 23:05

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

Post Reply