Update README.md

This commit is contained in:
nopnop2002
2021-07-09 14:53:24 +09:00
parent c885d7f835
commit f7a639be94
+9 -1
View File
@@ -163,6 +163,13 @@ $ curl -X POST -H "Content-Type: application/json" -d '{"canid": 513, "frame": "
$ curl -X POST -H "Content-Type: application/json" -d '{"canid": 513, "frame": "extended", "data": [16, 17, 18]}' http://esp32-server.local:8000/api/twai/send $ curl -X POST -H "Content-Type: application/json" -d '{"canid": 513, "frame": "extended", "data": [16, 17, 18]}' http://esp32-server.local:8000/api/twai/send
``` ```
Receive useing UNO.
![send_standard](https://user-images.githubusercontent.com/6020549/125029834-2c385300-e0c5-11eb-8f25-f3af82e90038.jpg)
![send_extended](https://user-images.githubusercontent.com/6020549/125029930-5558e380-e0c5-11eb-951b-baee58e66d18.jpg)
---
# HTTP Server Using Tornado # HTTP Server Using Tornado
``` ```
sudo apt install python3-pip python3-setuptools sudo apt install python3-pip python3-setuptools
@@ -174,6 +181,7 @@ python can.py
``` ```
![can2http-tornado](https://user-images.githubusercontent.com/6020549/123871778-18774900-d96f-11eb-95b6-df9713047c30.jpg) ![can2http-tornado](https://user-images.githubusercontent.com/6020549/123871778-18774900-d96f-11eb-95b6-df9713047c30.jpg)
# HTTP Server Using Flask # HTTP Server Using Flask
``` ```
sudo apt install python3-pip python3-setuptools sudo apt install python3-pip python3-setuptools
@@ -188,7 +196,7 @@ python can.py
![can2http-flask](https://user-images.githubusercontent.com/6020549/123871850-35ac1780-d96f-11eb-9d03-c1a0b547e9c8.jpg) ![can2http-flask](https://user-images.githubusercontent.com/6020549/123871850-35ac1780-d96f-11eb-9d03-c1a0b547e9c8.jpg)
# Brows data Using Tornado/Flask # Brows received data Using Tornado/Flask
Open your browser and put the Server's IP in the address bar. Open your browser and put the Server's IP in the address bar.
![can2http-browser](https://user-images.githubusercontent.com/6020549/123872025-71df7800-d96f-11eb-8832-8d9e1169c993.jpg) ![can2http-browser](https://user-images.githubusercontent.com/6020549/123872025-71df7800-d96f-11eb-8832-8d9e1169c993.jpg)