Compile error: "BYTE not supported, use Serial.write()"

Hello, I am trying to sent AT commands to my SM5100b.

When I compile:

char mobilenumber[] = "17708436766";  // Replace xxxxxxxx with the recipient's mobile number
void setup()
{
  //Initialize serial ports for communication.
  Serial1.begin(9600);
  delay(35000); // give the GSM module time to initialise, locate network etc. 
  // this delay time varies. Use example 26.1 sketch to measure the amount 
  // of time from board reset to SIND: 4, then add five seconds just in case
}

void loop() 
{
  Serial1.println("AT+CMGF=1"); // set SMS mode to text
  Serial1.print("AT+CMGS=");
  Serial1.print(34,BYTE); // ASCII equivalent of "
  Serial1.print(mobilenumber);
  Serial1.println(34,BYTE);  // ASCII equivalent of "
  delay(500); // give the module some thinking time
  Serial1.print("They call me the count... because I like to count! Ah ha ha ha");
  Serial1.println(26,BYTE);  // ASCII equivalent of Ctrl-Z
  delay(15000); // the SMS module needs time to return to OK status
  do // You don't want to send out multiple SMSs.... or do you?
  {
    delay(1); 
  } 
  while (1>0);
}

I get: "BYTE not supported, please use Serial.write()"

I've looked on here and I'm not sure how to send the ASCII " with Serial.write()

Thanks very much

  Serial1.print(34,BYTE); // ASCII equivalent of "

becomes

  Serial1.write(34); // ASCII equivalent of "

OK cool thanks, in the code they use Serial1.println(34, BYTE) to automatically append a carriage return onto the end of the line. How do I accomplish this with Serial.write()?

How do I accomplish this with Serial.write()?

You don't. But, you can call Serial.println() (nothing in the parens) after the Serial.write() to output the CR/LF.

On the other hand, you could do it all in one statement:

Serial.println("\"");

The " simply needs to be escaped to be handled by the Serial.println() function, rather than the compiler.