Implementing IoT Concepts With Python
Implementing IoT Concepts With Python
WAMP - Concepts
• Transport: Transport is channel that connects two peers.
• Session: Session is a conversation between two peers that runs over a transport.
• Client: Clients are peers that can have one or more roles. In publish-subscribe model client can have
following roles:
– Publisher: Publisher publishes events (including payload) to the topic maintained by the Broker.
– Subscriber: Subscriber subscribes to the topics and receives the events including the payload.
Django Architecture
• Django is Model-Template-View (MTV) framework.
• Model
• The model acts as a definition of some stored data and handles the
interactions with the database. In a web application, the data can be stored in a
relational database, non-relational database, an XML file, etc. A Django model is a
Python class that outlines the variables and methods for a particular type of data.
• Template
• In a typical Django web application, the template is simply an HTML page
with a few extra placeholders. Django’s template language can be used to create
various forms of text files (XML, email, CSS, Javascript, CSV, etc.)
• View
• The view ties the model to the template. The view is where you write the
code that actually generates the web pages. View determines what data is to be
displayed, retrieves the data from the database and passes the data to the template.