A simple example that implements Video Streaming and API calls for ESP32-CAM WiFi chip, DHT11 sensor and PIR (or another sensor modules).
This example uses PlatformIO and VSCode IDE.
- Rename
env.h.example
toenv.h
- Upload
http://wifi-ip
{
"variables":{
"temperature":25.00,
"humidity":33.00,
"heatindex":24.42,
"pir":0
},
"id":"1",
"name":"Hall",
}
http://wifi-ip:81/video
For video streaming