Newline "\\n"


I’m trying to add a newline to a string but I can’t get it to work, I want to have the distance value in one line and the rssi in a second line. Any idea what I’m missing?

response.send(200, “Distance “+distance+” cm”+"

Thank you

I think you’re successfully adding the newline to the string, but your browser is ignoring it because the response is treated as HTML, in which newlines are just whitespace and are ignored. Try "<br/>" instead.


You got it Peter. Thank you !!!