Professional Documents
Culture Documents
Experiment: University Institute of Engineering Department of Computer Science & Engineering
Experiment: University Institute of Engineering Department of Computer Science & Engineering
Experiment: University Institute of Engineering Department of Computer Science & Engineering
EXPERIMENT: 1.2
1. Aim of the practical: Design a Cloud based weather monitoring system using IoT platform and
relevant sensors.
• IoT software addresses its key areas of networking and action through platforms, embedded systems,
partner systems, and middleware.
• These individual and master applications are responsible for data collection, device integration, real-time
analytics, and application and process extension within the IoT network.
University Institute of Engineering
Department of Computer Science & Engineering
4. Code:
/*
* BMP280 - https://components101.com/sensors/gy-bmp280-module
https://github.com/knolleary/pubsubclient
*/
client(TOKEN);
Serial.print(topic);
Serial.print("] ");
Serial.print((char)payload[i]);
Serial.println();
void setup() {
Serial.begin(9600);
Serial.println("Init... T2_Weather");
Serial.println("Initializing BMP280");
status) {
Serial.println("Done");
Serial.print(WIFISSID); Serial.print(",
Password: ");
Serial.println(WIFIPASS);
client.wifiConnection(WIFISSID, WIFIPASS);
Serial.println("Done");
client.begin(callback); Serial.println("Done");
Serial.println("DONE");
}
University Institute of Engineering
Department of Computer Science & Engineering
void loop() {
pressure = bmp280.readPressure();
Serial.print("Temperature: ");
Serial.print(temperature); // variable
Serial.println(" °C");
Serial.print("Pressure: ");
Serial.print(pressure); // variable
Serial.println(" Pa");
(!client.connected()) { client.reconnect();
client.add("temperature-data", temperature); // Insert your variable Labels and the value to be sent
client.add("pressure-data", pressure);
client.loop(); delay(5000);
}
University Institute of Engineering
Department of Computer Science & Engineering
Question 1
Question 2
Which among the following allows us to identify objects and extract information?
Answer: RFID
Question 3
Question 4
The IoT nodes in a IoT network can have which of the following address?
Answer: Unique Local Address.
Question 5