This repository was archived by the owner on Mar 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,9 @@ In the following examples we use $ to represent variables. For example $Host rep
9
9
All responses will be prefixed with one of the following bytes signifying the response type.
10
10
```
11
11
+ If response is ok and a raw string value.
12
- * If response is ok and a raw string value prefixed by count of bytes in response then new line.
12
+ $ If response is ok, raw string value will be json formatted and prefixed by the byte count and a new line.
13
13
: If response is ok and a number, this could be float or int.
14
14
? If response is ok and a boolean value.
15
- $ If response is ok and json formatted and prefixed by count of bytes in response then new line.
16
15
- If response is an error
17
16
```
18
17
##NETWORK
@@ -54,14 +53,13 @@ Fetches the value at $Path and returns it on the serial line. If $PATH points to
54
53
>>GET /user/aturing/first
55
54
<<+Alan
56
55
>>GET /user/aturing
57
- <<& 39
56
+ <<$ 39
58
57
<<{ "first" : "Alan", "last" : "Turing" }
59
58
60
59
##GET{+,* ,#,.,?,$}
61
60
Same as GET but will either return the value in the format specified (by the format byte) or return an error.
62
61
###Usage
63
62
GET+ $PATH
64
- GET* $PATH
65
63
GET: $PATH
66
64
GET? $PATH
67
65
GET$ $PATH
@@ -153,8 +151,7 @@ The event stream will continue until you send CANCEL_STREAM.
153
151
<<+PUT /last_login
154
152
<<:1455052043
155
153
<<+PUT /address
156
- <<* 24
157
- <<78 High Street,
158
- <<Hampton
154
+ <<$24
155
+ <<"78 High Street,\r\nHampton"
159
156
>>CANCEL_STREAM
160
157
<<+OK
You can’t perform that action at this time.
0 commit comments