flowchart TD
A("Initialize Serial Communication") --> B("Initialize Wi-Fi")
B --> C("Try to Connect to WAP")
C --> D{"Is Connected?"}
D -->|Yes| H("Set Up Webserver")
D -->|No| F["Print Status to Serial Console"]
F --> G["Wait for Connection"]
G --> C
H --> I("Loop")
I --> J{"Is there an HTTP Request?"}
J -->|Yes| K["Send Distance Data as JSON over HTTP"]
J -->|No| M["Print Distance to Serial Console"]
K --> M
M --> I
-
Notifications
You must be signed in to change notification settings - Fork 0
Using an ESP8266 to get the distance data from an AJ-SR04M ultrasonic sensor over a really simple REST API.
License
turtureanu/esp8266-distance-measurement
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Using an ESP8266 to get the distance data from an AJ-SR04M ultrasonic sensor over a really simple REST API.