GithubHelp home page GithubHelp logo

df-iotalarm-esp8266's Introduction

df-iotalarm-esp8266

Digital Focus's WiFi alarm gateway firmware with esp8266. platformio with arduino-style coding is used.

Build & Upload firmware

Use platformio framework can be used to build and upload. by run these

pio run
pio run --target uploadfs
pio run --target upload

These commands will build the firmware. Then, upload the config JSON file to the file system of ESP8266 first with --target uploadfs. The last will be upload the firmware with '--target upload'.

Configuration

The configuration of IoT alarm can be customized with /data/config.json. List of param

  • AP name when in WIFI reset mode
  • MQTT topics
  • NTP server
  • OTA URL
  • etc.

Test reading info from device

To read info, mosquitto MQTT client can be used to subscribe to data from IoT Alarm. Test MQTT broker can be broker.hivemq.com. It's recommended to use your own broker.

mosquitto_sub -h <MQTT broker URL> -t "iotalarm/info" -t "iotalarm/help" -t "iotalarm/security"
mosquitto_sub -h broker.hivemq.com -t "iotalarm/info" -t "iotalarm/help" -t "iotalarm/security"

OTA Server

For testing, python's HTTP server module can be used for the firmware hosting

cd /path/to/this/repo
python -m http.server 8000

Send upgrade request to the firmware host by publishing the MQTT to OTA topic with chip ID to start OTA process.

mosquitto_pub -h <MQTT broker URL> -t "iotalarm/ota" -m "<chip ID>"

df-iotalarm-esp8266's People

Contributors

noahcroit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.