Blynk httpApi escaped character does not work

So… I was playing around with the HTTP Api thinking I might use it as an “intermediate” solution to printing text to terminal while, I was doing an OTA for example, since during OTA I have blynk disconnected.
This could have been a great way to send OTA Progress to terminal or something of the sort.

Problem:
It seems like HTTP Get requests does not interpret the new line character properly.
https://MyServ/MyAuth/update/V20?value=tryMe\nHello

Question:
Am I doing it wrong or is it just not working? How should it be done if there is a workaround?

Try replacing the \ with %5C

Didn’t work :confused: it just wrote out the “\n” anyways…

Edit:

So far I’ve tried (from various google results)
\n
\\n
<br>
“\n”
“\\n”

Nothing works. <.<

Edit2:

Solved!
For anyone interested %0A is the code for newline that worked for me :slight_smile:

Apparently that is actually the linefeed or \r

newline (carriage return) or \n is %0D

I think you are mixing them up :stuck_out_tongue:
Newline = linefeed = \n = %0A
Carriage return = \r = %0D

Get some sleep mate :thinking::exploding_head:

image

Apparently :wink: … there are just sooo many ways of doing End of Line and Escape sequences… Windows, Unix, Mac, URL, ASCII… blah blah blah :confounded: Add in a dyslexia tendency and well… you get a confused me :innocent:

1 Like