From 00287611fd730497abbf1860259f52f3265d4aed Mon Sep 17 00:00:00 2001 From: nopnop2002 Date: Tue, 6 Jul 2021 23:15:18 +0900 Subject: [PATCH] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 42ce749..22ed5b6 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,18 @@ E,103,/post When a Standard CAN frame with ID 0x101 is received, POST with the "/post" PATH. When a Extended CAN frame with ID 0x101 is received, POST with the "/post" PATH. +# POST Parameter Example +``` +{'canid':257, 'frame': 'standard', 'data': [1,2,3,4,5,6,7,8]} +{'canid':257, 'frame': 'extended', 'data': [1,2,3,4,5,6,7,8]} +{'canid':259, 'frame': 'standard', 'data': [1,2,3,4,5,6,7,8]} +{'canid':259, 'frame': 'extended', 'data': [1,2,3,4,5,6,7,8]} +``` + +When a CAN frame with ID 0x101 is received, POST with the 'canid':257. +When a CAN frame with ID 0x103 is received, POST with the 'canid':259. + + # HTTP Server Using Tornado ``` sudo apt install python3-pip python3-setuptools