Author Topic: Trying to send '+' by Serial  (Read 1305 times)

diamond

  • Newbie
  • *
  • Posts: 1
Trying to send '+' by Serial
« on: September 06, 2019, 02:18:59 pm »
Hi, I have been trying to send an string that contains the character '+'  by the serial port, using HardwareSerial or SoftSerial. When I read the output, I can observe that the string sent doesn't have the character '+'. In its place, the string is broken by an indent.
Does anyone know why this is occurring?
Any idea how to solve this or send a '+'?
I'm using Digispark Pro.

Thanks.

This is part of my code:
Code: [Select]
void setup() {
  mySerial.begin(9600);       
  //Serial.begin(9600); 

  //Serial.print("1");
  pinMode(BRKPin, OUTPUT);
  //Serial.print("2");
 
  mySerial.println("AT+ROLE0");

  mySerial.println("AT+RENEW");
 
  mySerial.println("AT+IMME1");
  mySerial.println("AT+PWRM1");
  mySerial.println("AT+PASS000000");
  mySerial.println("AT+NAMEasd");
  mySerial.println("AT+NOTI1");
  mySerial.println("AT+TYPE0");
  mySerial.println("AT+MODE0");
  mySerial.println("AT+ROLE1");
  mySerial.println("AT+FILT0");
  mySerial.println("AT+SHOW1");
  mySerial.println("AT+ADTY0");
}