Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

Concatenate/combine strings

$
0
0

Hello

 

First of all I am a newbie :)

 

And I am working on a project and I was wondering if it is possible to combine a string with a variable to clean up the code a little, something like this:

char phoneNumber[ ] = "123456789";

Serial.print("AT+CMGS=\"" + phoneNumber + "\"");

This gives an error on compiling.

 

Looking forward to any replies, thanks!

 

Best regards

Andreas


Viewing all articles
Browse latest Browse all 2077

Trending Articles