You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: serial_protocol.md
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -84,18 +84,20 @@ Store the data provided at the path provided. This method should be used for sim
84
84
###Examples
85
85
>>SET /user/aturning/first Alan
86
86
<<+OK
87
-
##SET_BULK
88
-
Similar to SET above but used to write multiline strings or raw binary data.
87
+
##SET$
88
+
Similar to SET above but used to write multiline strings or raw binary data. Data format is similar to the batch string ($) return type, we specify the $DATA_BYTE_COUNT on the same line as SET$ then a newline and all data.
89
89
90
90
Receiver will wait until a timeout for client to send $DATA_BYTE_COUNT worth of data before becoming responsive again.
91
91
###Usage
92
-
SET_BULK $PATH $DATA_BYTE_COUNT $DATA
92
+
SET$ $PATH $DATA_BYTE_COUNT
93
+
$DATA
93
94
###Response
94
95
+OK
95
96
-FAIL
96
97
-FAIL_TIMEOUT
97
98
###Examples
98
-
>>SET /user/aturning/address 24 78 High Street,
99
+
>>SET /user/aturning/address 24
100
+
>>78 High Street,
99
101
>>Hampton
100
102
<<+OK
101
103
@@ -120,16 +122,18 @@ Adds a value to the list located at the path provided and returns the key at whi
120
122
>>PUSH /user/aturning/login_timestamps 1455052043
121
123
<<+-K94eLnB0rAAvfkh_WC2
122
124
123
-
##PUSH_BULK
124
-
Similar to PUSH but used to write multiline strings or raw binary data.
125
+
##PUSH$
126
+
Similar to PUSH but used to write multiline strings or raw binary data. Data format is similar to the batch string ($) return type, we specify the $DATA_BYTE_COUNT on the same line as SET$ then a newline and all data.
125
127
126
128
Receiver will wait until a timeout for client to send $DATA_BYTE_COUNT worth of data before becoming responsive again.
127
129
###Usage
128
-
PUSH_BULK $PATH $DATA_BYTE_COUNT $DATA
130
+
PUSH_BULK $PATH $DATA_BYTE_COUNT
131
+
$DATA
129
132
###Response
130
133
$KEY
131
134
###Examples
132
-
>>PUSH /user/aturning/quotes 91 We can only see a short distance ahead,
135
+
>>PUSH /user/aturning/quotes 91
136
+
>>We can only see a short distance ahead,
133
137
>>but we can see plenty there that needs to be done.
0 commit comments