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
Copy file name to clipboardExpand all lines: README.md
+21-10Lines changed: 21 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -16,17 +16,28 @@ PATH\n
16
16
[B\n BODY]
17
17
```
18
18
19
-
### VERSION
19
+
### SEPARATOR char
20
+
21
+
SEPARATOR char serves to divide pieces of information
22
+
23
+
* Type: `char` | `byte` | `uint8_t`
24
+
* Size: 1 byte
25
+
* Constant:
26
+
* char: `\n`
27
+
* hex: `0xA`
28
+
* decimal: `10`
29
+
30
+
### [0] VERSION
20
31
21
32
Version is the version of iot protocol. Used for compatibility.
22
33
23
34
* Type: `byte` | `uint8_t`. **REQUIRED**
24
35
* Size: 1 byte
25
36
* Example: `1`
26
37
27
-
### METHOD_ID
38
+
### [1] METHOD+ID
28
39
29
-
Method ID: METHOD+ID.
40
+
Method ID identifies the method of request and its id.
30
41
31
42
Methods:
32
43
@@ -47,7 +58,7 @@ Unsigned random number with up to 2^16 that identifies the request.
47
58
* Size: 2 bytes
48
59
* Example: `1822`
49
60
50
-
### PATH
61
+
### [2]PATH
51
62
52
63
The path component contains data, usually organized in hierarchical
53
64
form, that, serves to identify a resource [URI > 3.3 Path](https://www.rfc-editor.org/info/rfc3986).
@@ -56,18 +67,18 @@ form, that, serves to identify a resource [URI > 3.3 Path](https://www.rfc-edito
56
67
* Example: `/foo/bar`
57
68
* Default: `/`
58
69
59
-
### HEADERS
70
+
### [3]HEADERS
60
71
61
-
Key Value Pair joined by `:` char, that, serves to set an attribute value for the request. Multiple headers must be separate para SEPARATOR char (`\n`).
72
+
Key Value Pair joined by `:` char, that, serves to set an attribute value for the request. Multiple headers must be separate by SEPARATOR char (`\n`).
62
73
63
74
* Type: `Map<string, string>`. **OPTIONAL**
64
75
* Example:
65
-
* Single header: `foo:bar`
66
-
* Multiple headers: `foo:bar\nlorem:ipsum`
76
+
* Single header: `foo:bar\n`
77
+
* Multiple headers: `foo:bar\nlorem:ipsum\n`
67
78
68
-
### BODY
79
+
### [4]BODY
69
80
70
-
The final data to be used for request receiver. Starts with `B\n`.
81
+
The final data to be sent for request receiver. Starts with `B\n`.
0 commit comments