Timeline for BridgeServer REST API with more string values
Current License: CC BY-SA 3.0
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 4, 2018 at 19:49 | vote | accept | novski | ||
| Apr 4, 2018 at 19:47 | comment | added | Juraj♦ | it is a 'new line' code. in this case at the end of the HTTP GET request's first line. on next lines are the HTTP headers | |
| Apr 4, 2018 at 19:45 | comment | added | novski | your my hero. that works. can you explain me what \r\n means and why it is that i have to expect (guess) that? | |
| Apr 4, 2018 at 14:09 | comment | added | Juraj♦ | but after the on, there is no /. the readStringUntil reads the rest of input and then waits a second and returns. I bet you have "on\r\n" in the String. and that is not equal to "on". | |
| Apr 2, 2018 at 23:40 | comment | added | novski | ah, i found a underlaying issue. somehow the string of the device1 gets recognzed by an if(command == "device1"){ switch(client)}; but not the switch afterwords wich takes the second readStringUntil("/") part... like void switch(client){ String command = client.readStringUntil('/'); if(command == "on"){ turn(client);} the on does not get recogized. but im able to print command "on" to console. | |
| Apr 2, 2018 at 22:44 | comment | added | novski | true. I cold swear i tested that with a negative result. now it works. | |
| Apr 2, 2018 at 10:51 | comment | added | Juraj♦ | the rest is still waiting in buffer to be read with the next readStringUntil | |
| Apr 2, 2018 at 6:14 | comment | added | novski | I can’t follow... | |
| Apr 2, 2018 at 5:50 | comment | added | Juraj♦ | not cuts away, stores into output | |
| Apr 1, 2018 at 19:26 | comment | added | novski | Do you mean to read to device1/foo/bar/ and then to device1/foo/ ? thats not possible because readStringUntil('/'); finds the first and cuts away the rest of the string... | |
| Apr 1, 2018 at 10:56 | comment | added | Juraj♦ | or read it to / and then to / etc. | |
| Apr 1, 2018 at 10:51 | comment | added | Juraj♦ | hackingmajenkoblog.wordpress.com/2016/02/01/… or forum.arduino.cc/index.php?topic=396450.0 | |
| Apr 1, 2018 at 8:51 | comment | added | novski | ok, so how can i pass it thorugh a function without to loose the information about the "xy" string (of myarduino/foo/bar/xy)? | |
| Apr 1, 2018 at 8:14 | history | answered | Juraj♦ | CC BY-SA 3.0 |