This code was generated in the YouTube video ESP32 WiFi: Intro To Events, part of a video series marching toward a next-level WiFi library for ESP32 IoT developers. 👉 Subscribe to the OhioIoT YouTube Channel for more on All Things IoT: hardware, firmware, connectivity, cloud computing, and dev toolkit.
git clone https://github.com/OhioIoT-Examples/ESP32-WiFi_Intro-To-Events.git
This codebase is structrued as a fully ready PlatformIO project.
- change the WiFi credentials in main.cpp
- compile and run
To turn off logging, delete/uncomment the wifi_tools.log_events()
and wifi_tools.log_status()
function calls.
The library wifi_tools, found in the lib/ folder, is compatible with ESP32 in Arduino IDE.
- copy the wifi_tools library to your Arduino libraries/ folder
- copy the code from src/main.cpp into your sketch
- update the WiFi credentials in your sketch
arduino/
│
├── libraries/
│ └── wifi_tools/ <-- copy the lib/wifi_tools folder and paste it here
│ ├── wifi_tools.cpp
│ └── wifi_tools.h
│
└── [your_sketch]/
└── [your_sketch].ino <-- put the contents from src/main.cpp here
- compile and run
OhioIoT is an IoT platform designed for small-scale IoT projects. For more, check out our webiste at www.OhioIoT.com.