GithubHelp home page GithubHelp logo

cdzombak / esp8266-basic-wifi Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 223 KB

Basic Arduino + ESP8266 + PlatformIO demos, covering WiFi usage and monitoring, LED blinking w/timer interrupt, HTTPS/TLS, and InfluxDB. Browse the various branches.

esp8266 arduino bearssl influxdb platformio

esp8266-basic-wifi's Introduction

ESP8266/Arduino/PlatformIO Demos

This project's branches contain several different ESP8266 + Arduino demos, built using PlatformIO, for the Wemos D1 Mini board:

  • Branch basic-wifi connects to a WiFi network and then periodically pings Google
  • Branch influxdb reports ping results and WiFi statistics to an InfluxDB server periodically
  • Branch https performs GET and POST requests over HTTPS, using JSON and performing proper TLS certificate verification using a root store
  • Branch letsencrypt performs a GET over HTTPS, performing proper TLS certificate verification using a small set of root certificates (Let's Encrypt's roots)

My goals for this project are:

  • Learn about this platform for myself; get good enough at it to do hobby projects.
  • Provide some good examples using what I think are best practices, since a lot of tutorial/demonstration Arduino code available online is not very good.

In particular, I'd like to note:

  • I felt it was important to provide reliable feedback via blinking the onboard LED, which also provides a demonstration of using timer interrupts.
  • I demonstrate some basic usage of a cooperative multitasking scheduler for Arduino.
  • These demo projects make the board show up as a .local domain on the network using multicast DNS.
  • Contrary to code from the majority of Ardunio/ESP8266 HTTPS tutorials & forums, my HTTPS demo project fetches the current time and loads a certificate root store, allowing for secure and flexible TLS certificate validation.

Notable third-party open-source libraries demonstrated:

Blog posts for these demos will eventually be posted at dzombak.com/blog. Thus far:

esp8266-basic-wifi's People

Contributors

cdzombak avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

esp8266-basic-wifi's Issues

ESP-01

Hello-

Have you tested this on a ESP-01? I'm having trouble getting the request to go through. My respCode from httpClient.GET(); is always -1.

Thanks,
rnsi

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.