21BPS1595 IOT Lab-6
21BPS1595 IOT Lab-6
21BPS1595
Lab Assesment-6
Web Based Application (HTML) Form Creation &
Submission in Node-Red
Aim:
The primary objective of this practical experiment is to demonstrate the creation and submission of
a web-based application form using Node-RED. This experiment aims to showcase how Node-RED
can be employed to seamlessly integrate HTML forms, enabling users to interact with and submit
data through a web interface.
Theory:
1. Node-RED as a Visual Programming Tool:
• Node-RED provides a visual programming environment for IoT applications, allowing
users to create flows by connecting nodes.
• It is particularly well-suited for the rapid development of applications that involve
the processing of data from various sources.
2. MQTT for Communication:
• MQTT is a lightweight and efficient messaging protocol designed for low-bandwidth,
high-latency or unreliable networks, making it suitable for IoT applications.
• In this experiment, MQTT serves as the communication protocol between the web-
based application and Node-RED, enabling seamless data exchange.
3. HTML Forms for User Interaction:
• HTML forms provide a user-friendly way to collect data through a web-based
interface.
• The integration of HTML forms with Node-RED allows for the creation of dynamic,
interactive applications that can gather user input.
Procedure:
1. Trigger node red in cmd using node-red -v
2. http://127.0.0.1:1880/
3. Arrange nodes according to the flow and assign properties
4. Set up an MQTT broker or use an existing one.
5. Get the output on node-red dashboard.
Flow:
1
Properties:
Output:
Inference:
Upon completion of the experiment, the inference drawn will revolve around the successful
integration of HTML forms with Node-RED through MQTT. Insights will include the effectiveness of
Node-RED as a visual programming tool for IoT applications and the efficiency of MQTT in facilitating
communication between the web-based application and Node-RED.
Result:
The result of the experiment will manifest in a comprehensive report showcasing the creation and
successful submission of HTML forms through a web-based application integrated with Node-RED
and MQTT. The report will highlight the seamless communication and data exchange between the
user interface and the Node-RED flow, demonstrating the practicality and versatility of these
technologies in the context of IoT application development.