Commit a39c53ae authored by Hoang Tran's avatar Hoang Tran

modified CoAPCode for FETCH, PATCH and iPATCH

parent cc326776
......@@ -349,6 +349,9 @@ class _CoAPCodeDescription:
2: "POST",
3: "PUT",
4: "DELETE",
5: "FETCH",
6: "PATCH",
7: "iPATCH",
# Responses
65: "2.01 Created",
......@@ -413,8 +416,7 @@ class CoAPType (UInt2):
return super().__new__(cls, value)
class CoAPCode (UInt8):
__values = "Empty", "GET", "POST", "PUT", "DELETE"
__values = "Empty", "GET", "POST", "PUT", "DELETE", "FETCH", "PATCH", "iPATCH"
def __new__ (cls, value):
if isinstance (value, str):
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment