3. Chadalawada
Ramanamma
Engineering
College
(A),
Tirupati.
Department of CSE
✓ Application Programming Interface, or API –
web service
✓ Service – Example - Look photo-face book-
human vs machine
✓ Mashing API- Multiple API’s – google map
✓ Scraping – has data- convert to API – website
service
✓ Legalities
Getting Started with an API
11/18/2022 Internet of Things by Dr. Vikram Neerugatti 3
4. Chadalawada
Ramanamma
Engineering
College
(A),
Tirupati.
Department of CSE
✓ For new source of information
✓ Our own connected device – New API
✓ What data – how you want to work with that
✓ Front end
✓ Back end
✓ Clear – start writing new API
✓ Security
Writing a New API
11/18/2022 Internet of Things by Dr. Vikram Neerugatti 4
5. Chadalawada
Ramanamma
Engineering
College
(A),
Tirupati.
Department of CSE
✓ Implementing the API
✓ An API defines the messages that are sent from
client to server and from server to client.
✓ Most common standards-
✓ REST –access a set of web URL
✓ JSON-RPC- Single web URL
✓ XML-RPC- use XML instead of JSON
✓ Simple Object Access Protocol (SOAP)- XML –
additional Layers
Writing a New API
11/18/2022 Internet of Things by Dr. Vikram Neerugatti 5
6. Chadalawada
Ramanamma
Engineering
College
(A),
Tirupati.
Department of CSE
✓ Traditional – HTTP- Request – Response
✓ polling and the so-called “Comet” technologies.
✓ And then, in the section on non-HTTP protocols,
MQTT, XMPP, and CoAP offer alternative
solutions.
✓ Long polling – unidirectional
✓ HTML5 Web Sockets (Bidirectional)
✓ Scaling
Real Time Reactions
11/18/2022 Internet of Things by Dr. Vikram Neerugatti 6
7. Chadalawada
Ramanamma
Engineering
College
(A),
Tirupati.
Department of CSE
✓ MQTT- Message Queue TELEMETRY TRANSPORT
✓ MQTT – Messaging Protocol
✓ HTTP- Client/Server Model
✓ MQTT – Publish/Subscribe – Broker
✓ MQTT-S-Zigbee
✓ XMPP-EXTENSIBLE MESSAGING AND PRESENCE
PROTOCOL
✓ XMPP – Messaging Protocol – Instant message service
✓ Constrained Application Protocol (CoAP) – UDP
Other Protocols Protocol
11/18/2022 Internet of Things by Dr. Vikram Neerugatti 7