As per subject, how do I to manipulate the string passed through SoftwareSerial Print/Println function? The reason why is I tried to make the URL parameter dynamic in order to access different webpages.
*Note: The code snippet below are working fine if without using String variable
// This is working fine
SoftwareSerial iSerial(28, 29);
iSerial.println("AT+HTTPPARA=\"URL\",\"http://website.com/data1.php\"");
delay(1000);
Serial.write(iSerial.read());
// This is not working
SoftwareSerial gprsSerial(28, 29 );
Int inputNumber;
String S1 = "AT+HTTPPARA=\"URL\",\"http://website.com/";
String S2 = String(inputNumber) + "data.php\"";
String_Variable = S1+S2;
iSerial.println(String_Variable);
delay(1000);
Serial.write(iSerial.read());
*Working means able to access the webpage via simcard using SIM900 (AT+HTTPPARA)
I even tried converting the string to array using malloc() and toCharArray() but it is still not working when I use the SoftwareSerial print function.
I'm new to Arduino. Kindly advise. Thanks! :)