ESPToolbox
Facilitate your programming by using this toolbox for ESP32 and ESP8266.
As an example, here a minimal code to get NTP time:
ESPToolbox Tb; // Create an ESPToolbox Object
void setup() {
Tb.set_udp_log(true, UDP_LOG_PC_IP, UDP_LOG_PORT);
Tb.init_wifi_sta(WIFI_SSID, WIFI_PASSWORD);
Tb.init_ntp_time();
}
void loop() {
Tb.get_time();
Tb.log("\nThe time is: ");
Tb.log_ln(Tb.t.time);
Tb.blink_led_x_times(3);
}This toolbox contains methods and examples to:
- log and debug with LEDs, Serial or over UDP
- work with LEDs
- use WiFi and to get a static IP address
- use Over The Air programming (OTA)
- get the time from an Network Time Protocol (NTP)
- easily use millis() instead of delay()
And an example to use everything together with MQTT and a temperature, humidity and pressure sensor (BME280).
The Toolbox has already proved its usefulness and reliability in my last projects like:
- SmartyReader:: https://www.weigu.lu/microcontroller/smartyReader_P1/index.html
- Neo Clock 2: https://www.weigu.lu/microcontroller/neo_clock_2/index.html
- Garden watering: https://www.weigu.lu/microcontroller/garden_watering/index.html
The Toolbox is completely documented here.
All infos: http://www.weigu.lu/microcontroller/esptoolbox/index.html
The code is on Github : https://github.com/weigu1/esptoolbox

Discussion (0 comments)