Skip to content

Latest commit

 

History

History
68 lines (44 loc) · 2.11 KB

README.md

File metadata and controls

68 lines (44 loc) · 2.11 KB

My IoT Application

Release License

About the Application

The IoT Application is a Python-based MQTT project designed to interact with a Raspberry Pi Pico Wh. The application includes MQTT functionality to communicate with various sensors (like temperature, and humidity) and control LEDs based on received commands. Additionally, the application can download and apply code updates from an S3 bucket, making it easy to maintain and update your IoT devices remotely.

Key Features

  • MQTT Communication: Supports publishing sensor data and receiving commands to control LEDs.
  • TLS Support: Secures MQTT communication with TLS.
  • S3 Integration: Automatically downloads and applies updates from an S3 bucket.

Getting Started

Prerequisites

  • MicroPython 3.x
  • Simple-MQTT Library
  • Thonny Software

Installation

  1. Clone the Repository:
    git clone https://github.com/ajaikumarsadasivam/mqtt-pipy.git
    cd your-repo
    
  2. Install Dependencies:
    pip install -r requirements.txt
    
  3. Run the Application:
    python main.py
    
    

Configuration

Configure your MQTT broker, S3 bucket, and other environment variables by creating a .env file in the root directory:

MQTT_BROKER_URL=mqtt.yourbroker.com
MQTT_BROKER_PORT=8883
MQTT_USERNAME=your_username
MQTT_PASSWORD=your_password
S3_BUCKET_URL=https://s3.amazonaws.com/your-bucket

Usage

After setting up, you can access the Flask web interface on http://localhost:5000. The interface allows you to:

  • View the latest sensor data.
  • Control the LEDs connected to the Raspberry Pi Pico W.

Links

  • Latest Release: View Latest Release
  • Latest Package: Download Latest Package
  • Documentation: Project Documentation

Contributing

License