Smart home projects with ESP: WLAN with IotWebConf

[ad_1]

Table of Contents

More craft items

The ESP8266 microcontroller can establish connections to a WLAN without additional components. The inexpensive chip is therefore ideally suited for smart home devices developed in-house. They should set up their own network for the configuration of the WLAN access data and query the data via a browser-based form with a web server and store all configuration data in the flash of the microcontroller. Most projects use the WifiManager library for this, which automatically organizes the web server, form and connection establishment after configuration.

If the WifiManager does not yet know any WLAN access data, the library waits in setup() thereon. loop() the ESP does not run until the WLAN is configured. What is a sensible approach for many smart home tinkering, however, blocks devices whose WLAN communication is only an additional feature. The AeVOC aerosol and VOC sensor is such a device: it warns of contaminated air via colored LEDs and shows its measured values ​​on a small OLED display. VOCs are volatile organic molecules (volatile organic compounds). LEDs, display and sensors also work without a WiFi connection. If this exists, the sensor box can also send its data via the MQTT home automation protocol, which means that the smart home can automatically ventilate. If you take the device out of the reception area of ​​the home WLAN, it shouldn’t wait for data, but also measure, display and warn offline.

The developer Balázs Kelemen probably once built a similar device. Namely, with “IotWebConf” he wrote a library inspired by the WifiManager, which however does not block if there is no WLAN access data. It is just as easy to use as the WifiManager. The firmware for AeVOC uses the library and is suitable as an example of how to integrate IotWebConf into your own projects for the ESP8266.

  • Access to all heise + content
  • exclusive tests, advice & background: independent, critically sound
  • Read c’t, iX, Technology Review, Mac & i, Make, c’t photography directly in your browser
  • register once – read on all devices – can be canceled monthly
  • first month free, then 9.95 € per month
  • Weekly newsletter with personal reading recommendations from the editor-in-chief

Start FREE month

Start your FREE month now
Already subscribed to heise +?

Sign up and read

Register now and read articles right away
More information about heise +

comments_outline_white

Read comments (1)

To home page

[ad_2]

Share:

Facebook
Twitter
Pinterest
LinkedIn

Leave a Reply

Related Posts

Can You Snort Marijuana

Can You Snort Marijuana Simply put, snorting marijuana is not a smart or safe way to use it. Most people smoke, vape, or eat edibles

Can Marijuana Cause Diarrhea

Can Marijuana Cause Diarrhea Simply put, using marijuana can sometimes cause stomach problems like diarrhea, but it’s not completely clear if one directly causes the

Drying Marijuana in Paper Bags

Drying Marijuana in Paper Bags Key Takeaways Discover why using paper bags is advantageous for drying marijuana Learn essential steps and expert techniques for efficiently

Can You Vacuum Seal Marijuana

Can You Vacuum Seal Marijuana You can totally vacuum seal your weed, no problem. Vacuum sealing helps keep your stash fresh and potent by getting