IoT Cloud Webserver Notes
IoT Cloud Webserver Notes
Physical servers are on-premise or dedicated servers that store, manage, and process data from
IoT devices.
Advantages:
Disadvantages:
- Limited scalability
Example:
Using a local Linux server to collect and analyze data from IoT sensors in a smart factory.
Cloud platforms offer scalable infrastructure for storing, processing, and analyzing IoT data.
Advantages:
- Scalability
- Pay-as-you-go model
- Global accessibility
IoT Devices (Sensors, Actuators) -> Gateway (Raspberry Pi) -> Internet -> Cloud Platform (AWS,
- Object Storage: Example: Amazon S3 (Stores unstructured data like logs, images)
- File Storage: Example: Azure Files, Amazon EFS (Structured folders/files format)
3. Communication APIs
Types of APIs in IoT
Purpose
Common Webservers
- Flask (Python)
- Real-time analytics
- Dashboards for monitoring
Example:
Using AWS IoT Core to collect and process temperature sensor data.
Directory Structure
iot_light_control/
- app.py
- templates/
- index.html
app.py
index.html
Python code to get the light status and toggle it via REST API calls.
IoT Device (Python/ESP) <--> Flask Server on Cloud/LAN --> Web Browser (View/Toggle Light)
Conclusion
Using Flask, RESTful APIs, and cloud storage, we can design scalable, real-world IoT systems.