Giter Site home page Giter Site logo

wsn-http-mqtt's Introduction

Processing of temperature using WEMOS D1 mini

License: MIT

This article demonstrates how to set up your own ESP8266 WiFi-enabled micro-controller (in our case WEMOS D1 mini) to read the temperature, send it to the MQTT broker and run the HTTP server alongside, which shows the real time temperature without the need to subscribe to the MQTT topic, using FreeRTOS.

Variables

Replace the credentials WIFI_SSID and WIFI_PASS inside wsn-http-mqtt/private_ssid_config.h with your own access point information to enable the sensor to connect to the internet.

Also change the information MQTT_HOST, MQTT_PORT, MQTT_USER and MQTT_PASS inside wsn-http-mqtt/mqtt_client.c to enable the connection to the MQTT broker. In this example a free plan on CloudMQTT was used.

Instalation instructions

Building the project requires a copy of FreeRTOS for ESP8266 WiFi-enabled microcontrollers, which you can find in the repository SuperHouse/esp-open-rtos.

Before building the project check the Makefile to see if all the paths are correctly pointing to your downloaded files. You can build it by running make build.

Flash you build onto the micro-controller using make flash. If you change some pieces of the code and they are not visible after the flashing you can

  • run make clean, or
  • run make erase_flase to erase the data of the entire flash chip

and flash it again.

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.