A close up of a piece of paper with a pencil laying on top.
Publish & subscribe. 1. What is Publish and Subscribe? Publish and Subscribe (Pub/Sub) is a messaging communication method where: Publishers → Send data or messages. Subscribers → Receive data they are interested in. Broker / Middleware → Manages and distributes messages..
2. Components in Publish–Subscribe Model Publisher A sensor node that collects data and sends it to the network. Example: Temperature sensor publishing temperature data. 2. Subscriber A device or application that requests specific data. Example: Monitoring system subscribing to temperature updates. 3. Broker The intermediate server or node that distributes messages to subscribers. It filters and forwards messages based on topics..
3. Working of Publish–Subscribe in WSN 1️⃣ Sensor node collects data (temperature, humidity, etc.). 2️⃣ The node publishes the data to a topic. 3️⃣ The broker receives the message. 4️⃣ The broker sends the message to all subscribers interested in that topic..
4. Example Temperature monitoring system: Sensor publishes: Topic: /temperature Message: 30°C.
Web service paradigms. 1. What are Web Service Paradigms? A Web Service Paradigm is a communication approach that enables interaction between sensor nodes and external applications using web technologies such as HTTP, XML, or JSON..
2. Types of Web Service Paradigms Used in WSN 1.SOAP-Based Web Services Uses Simple Object Access Protocol (SOAP). Messages are sent in XML format. Communication usually happens over HTTP. Features: High security Standardized communication Suitable for enterprise systems Example: A temperature sensor sends data to a server using SOAP messages..
2. REST-Based Web Services Uses Representational State Transfer architecture. Data is usually exchanged in JSON or XML. Uses standard HTTP methods: GET – retrieve sensor data POST – send sensor data PUT – update data DELETE – remove data Example: A smart home app requests temperature data from a sensor gateway using a REST API..
3. Working of Web Service Paradigms in WSN 1️⃣ Sensor nodes collect environmental data. 2️⃣ Data is sent to a gateway node. 3️⃣ The gateway converts the sensor data into web service format..
5. Applications Smart homes Environmental monitoring Smart agriculture Industrial automation Healthcare monitoring.
Commen protocol. 1. What is a Common Protocol in WSN? A protocol is a set of rules that controls how data is transmitted between devices in a wireless sensor network. Protocols define: Data transmission method Network communication rules Error detection and correction Device coordination.
2. Common Protocols Used in Wireless Sensor Networks 1. Zigbee Low-power wireless communication protocol Based on IEEE 802.15.4 standard Supports mesh, star, and tree network topologies Used in home automation and smart energy systems. 2. MQTT Lightweight publish–subscribe messaging protocol Suitable for low bandwidth networks Uses a broker to manage messages Common in IoT and remote monitoring systems..
3. CoAP Constrained Application Protocol Designed for resource-limited devices Uses UDP instead of TCP Works similar to REST-based web services 📌 Used in smart devices and IoT systems. 4. Bluetooth Low Energy Very low power consumption Short-range wireless communication Used in health monitoring devices and wearable sensors..
5. HTTP Hypertext Transfer Protocol Standard web communication protocol Used when sensor data is sent to web servers or cloud platforms..
3. Characteristics of WSN Protocols ✔ Low energy consumption ✔ Small packet size ✔ Reliable data transmission ✔ Support for large number of nodes ✔ Scalable network communication.
THANK YOU. BY PANDIDURAI G.