Wk7 - WebServers Flashcards

1
Q

What is the main difference between push and pull models in IoT networking?

A

Pull: The client continuously asks the IoT device for data. Like visiting a website.

Push: The IoT device sends data to a server/cloud without being asked, when an event occurs. Like sending an email.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why is a push model preferred for low-power IoT applications?

A

A push model conserves power because the device remains idle until it needs to send data, unlike the pull model, which requires an always-on network connection for frequent requests.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are some of the pros of pulling data from an IoT Device?

A
  • Quick and easy to implement.
  • No third-party hosting is required.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are some of the cons of pulling data from an IoT Device?

A
  • It only supports a few simultaneous client connections.
  • You can forget about server-side processing (e.g., PHP).
  • Robust security is challenging to implement (i.e., HTTPS).
  • Programs can be structured as code that emits embedded HTML to clients – a maintenance headache.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the significance of using Flash memory in IoT devices?

A

Flash memory is non-volatile, meaning data stored in the file system persists after a device restart, making it suitable for storing files like HTML, CSS, and JS in IoT applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How can code and HTML be separated in an IoT Webserver?

A
  • Use some IoT Flash storage for a filesystem.
  • HTML, CSS, and JS files will reside in the filesystem.
  • Code & data are developed and uploaded separately.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are some of the features of the LittleFS Filesystem?

A
  • It is supported by the Arduino framework.
  • It is an abstraction layer on Flash memory to support file storage.
  • Code & files are stored in different areas of Flash memory and uploaded separately.
  • The allocated space for code and files is configurable in platformIO.ini.
  • It can store any file type (HTML, CSS, JS, JPEG, GIF, MP4, etc.).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the main limitations of using a web server on an IoT device?

A

Web servers on IoT devices have limited support for simultaneous client connections, lack server-side processing (like PHP), and implementing robust security (like HTTPS) is challenging.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What type of IoT applications is a pull model suitable for?

A

A pull model is suitable for applications that don’t require real-time updates, where occasional data requests are acceptable (e.g., querying environmental data periodically).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How does WiFi compare to other IoT wireless technologies in terms of bandwidth and power consumption?

A

WiFi has high bandwidth (~100 Mbits/sec) but consumes a lot of power compared to other technologies like LoRa or Bluetooth, which have lower bandwidth and are more power-efficient.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are some libraries used for web servers on ESP8266?

A

Common libraries include ESP8266WiFi and ESP8266WebServer for managing WiFi connections and handling HTTP requests.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the two basic approaches to accessing IoT sensor data?

A

The two approaches are pulling data from an IoT device (client requests) and pushing data to the cloud (IoT device sends data).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the pros and cons of using embedded HTML in IoT applications?

A

Embedded HTML is quick and simple for small apps, but it becomes difficult to maintain as applications grow more complex, especially when adding CSS and JavaScript.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are IoT hosted webservers suitable for?

A

Small apps with a few clients.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an alternative to using IoT devices with webservers?

A

IoT devices can push data to a remote server (e.g., cloud).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are some benefits of using cloud networking?

A
  • The cloud is used for data visualization storage and optionally analytics.
  • It supports more clients and clients in disparate locations.
  • It allows for more persistent storage.