Giter VIP home page Giter VIP logo

esp32-ds18b20-webapi's Introduction

ESP32 Temperature Sensor

ESP32 Web-API that can provide sensor readings from DS18B20 temperature sensors on the network

Build

  • Import as a new PlatformIO Project in VS Code
  • Set up your WiFi credentials:
    • Create a new obfuscatedData.hpp header using my project Credentials Obfuscating Tool and place it in the lib/deobfuscate/src/ directory
    • Alternatively: Change the WiFiHandler by adding your hardcoded credentials in the begin() function (C/C++ knowledge required)
  • Compile and upload to an ESP32 using PlatformIO

Default behavior

The ESP32 is ready immediately after booting. You can read out debug information via the serial interface.

Communicate with the API

Send a GET (HTTP/1.0 or HTTP/1.1) request to the web server listening on default port 80.

e.g. GET SENSOR/TEMPERATURE/0/VALUE/C HTTP/1.1

Sensor requests:

SENSOR/TEMPERATURE/<n>/VALUE/<C|F> returns a float (format: %.2f):

21.75

Responses to SENSOR requests contain INVALID READ: -127 on failure.

Actor/Buzzer requests:

ACTOR/BUZZER/<n>/OFF and ACTOR/BUZZER/<n>/ON[/<value>] (unit: milliseconds) return a string:

OK. Buzzer <n>: OFF|ON|BEEP/SIGNAL

Responses to ACTOR requests start with FAIL. (instead of OK.) on failure.

Licensing

Any code not written by me, I release under the license under which it was originally released. If the license of any third-party code is not explicitly stated in the file CONTRIBUTORS.md or with the third-party code itself, please contact the original author for more information on the license used.

My code is released under the global project license in LICENSE.

esp32-ds18b20-webapi's People

Contributors

execvpe 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.