Genericblock diagramofan IoTDevice
•An IoT device may consist of several interfaces for connections to
other devices, bothwiredandwireless.
•I/Ointerfacesfor sensors
•Interfaces for Internet connectivity
•Memoryandstorage interfaces
•Audio/videointerfaces.
PMModak SSPMCOE 5
Applications of IoT
1)Home
2)Cities
3)Environment
4)Energy
5)Retail
6)Logistics
7)Agriculture
8)Industry
9)Health & Life Style
PMModak SSPMCOE 17
IoT communication model
•Request Response Communications Model
•Publish –Subscribe Communication Model
•Push Pull Communication Model
•Exclusive Pair Communication Model
PMModak SSPMCOE 18
Publish-Subscribecommunicationmodel
•Publish-Subscribe is a communication model that involves publishers, brokers
and consumers.
•Publishers are the source of data. Publishers send the data to the topics which
are managed by the broker. Publishers are not aware oftheconsumers.
•Consumers subscribe to the topics whicharemanagedbythebroker.
•When the broker receives data for atopicfromthepublisher,it sends the data to
all the subscribedconsumers.
PMModak SSPMCOE 20
Exclusive Paircommunicationmodel
•ExclusivePair isa
bidirectional, fully duplex
communication model that
uses a persistent connection
betweentheclient and
server.
•Once the connection is setup
itremains openuntil the
clientsends arequest to
close theconnection.
•Clientandserver cansend
messages to each other after
connectionsetup.
PMModak SSPMCOE 22
IoT communication APIs
•REST-based communication API:
•WebSocket based communication API:
PMModak SSPMCOE 23
REST-basedCommunicationAPIs
•Representational State Transfer
(REST) is a set of architectural
principles by which you can design
web services and web APIs that
focus on a system’s resources and
howresourcestatesare
addressedandtransferred.
•REST APIs follow the request-
responsecommunicationmodel.
•The REST architectural constraints
apply to the components,
connectors, and data elements,
within a distributed hypermedia
system.
PMModak SSPMCOE 24
WebSocket-basedCommunicationAPIs
•WebSocketAPIsallowbi-
directional, fullduplex
communication between
clientsandservers.
•WebSocket APIs follow the
exclusive pair
communicationmodel
PMModak SSPMCOE 25