WiFiManager
pubsubclient
Our great sponsors
WiFiManager | pubsubclient | |
---|---|---|
41 | 16 | |
6,351 | 3,728 | |
- | - | |
7.7 | 0.0 | |
26 days ago | 22 days ago | |
C++ | C++ | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
WiFiManager
- Need some opinions on a clock I'm planning to sell online that involves ESP8266
-
Trouble changing clock format from 24 hour to 12 hour
#include "WiFiManager.h" //https://github.com/tzapu/WiFiManager WiFi Configuration Magic #include "ezTime.h" // Time Library - get your POSIX Timezone 'string' to replace TZ/GMT if needed, below, here: https://support.cyberdata.net/index.php?/Knowledgebase/Article/View/438/10/posix-timezone-strings #include "SevenSegmentExtended.h" #include "SevenSegmentTM1637.h" #include "SevenSegmentFun.h" // For Text readouts #include "SoftwareSerial.h" #include "DFMiniMp3.h" //========================USEFUL VARIABLES============================= const char* ssid = "R2D2"; // R2D2 Access point network name (to connect to R2D2, to change/add your WiFi details) const char* password = "Droidyouarelookingfor"; // R2D2 Access point password uint16_t notification_volume = 25; // Speaker volume int Display_backlight = 45; // 4 Digit Display brightness when operating normally (outside of initialisation) int BlueLED_brightness = 50; // Two blue LED's (when connected to ESP32 pin 14, instead of VCC) const char* ntpServer = "pool.ntp.org"; // Your chosen TimeServer const String timezone_posix_string = "EST5EDT,M3.2.0/2:00:00,M11.1.0/2:00:00"; // Insert your own POSIX Timezone string here. See link above for info. //===================================================================== // Avoid changing below here... // Call WiFi Manager WiFiManager wifiManager; // Call a Timezone Timezone TZ; #define CLK 25 #define DT 26 #define SW 27 #define RED_LED 17 #define WHITE_LED 16 const int BLUE_LED = 14; // 14 corresponds to GPIO14 float counter = 0; int currentStateCLK; int lastStateCLK; String currentDir = ""; unsigned long lastButtonPress = 0; int btnState = 0; // timer int timer_secs = 0; int timer_mins = 0; float inc_red_led = 0; // the number of the Blue LED's pin const int BlueChannel = 1; // setting PWM properties const int freq = 5000; const int resolution = 8; class Mp3Notify { public: static void PrintlnSourceAction(DfMp3_PlaySources source, const char* action) { if (source & DfMp3_PlaySources_Sd) { Serial.print("SD Card, "); } if (source & DfMp3_PlaySources_Usb) { Serial.print("USB Disk, "); } if (source & DfMp3_PlaySources_Flash) { Serial.print("Flash, "); } Serial.println(action); } static void OnError(uint16_t errorCode) { // see DfMp3_Error for code meaning Serial.println(); Serial.print("Com Error "); Serial.println(errorCode); } static void OnPlayFinished(DfMp3_PlaySources source, uint16_t track) { Serial.print("Play finished for #"); Serial.println(track); } static void OnPlaySourceOnline(DfMp3_PlaySources source) { PrintlnSourceAction(source, "online"); } static void OnPlaySourceInserted(DfMp3_PlaySources source) { PrintlnSourceAction(source, "inserted"); } static void OnPlaySourceRemoved(DfMp3_PlaySources source) { PrintlnSourceAction(source, "removed"); } }; SevenSegmentExtended blue1(21, 22); // CLK, DIO SevenSegmentFun words(21, 22); // CLK, DIO SoftwareSerial secondarySerial(18, 19); // TX, RX DFMiniMp3 mp3(secondarySerial); void configModeCallback (WiFiManager *myWiFiManager) { Serial.println("Entered WiFi Manager config mode.."); Serial.println(WiFi.softAPIP()); Serial.println(myWiFiManager->getConfigPortalSSID()); } //flag for saving data bool shouldSaveConfig = false; //callback notifying us of the need to save config void saveConfigCallback () { Serial.println("Should save config"); shouldSaveConfig = true; } void setup() { words.setBacklight(80); words.begin(); words.scrollingText("R2D2 START", 2);
-
I built a website running in ESP32 with separate frontend and backend. The frontend is made with VueJS + TailwindCSS, the backend is coded in C++
Many examples in Arduino tell you to embed HTML to your C++ code (look https://github.com/tzapu/WiFiManager/blob/master/wm_strings_en.h), but my approach is different: The frontend is written in different language (TypeScript + Vue), with separate build process (no C compiler involved). It even is tested independently from Arduino code, on PC.
-
Esp-Idf wifi manager
Hello. Some time ago I' ve strugled with seting up wifi manager in esp_idf framework. Most popular wifi manager made by tzapu was not working on esp-idf framework inside PlatformIo. So I have found tonyp7. It started to work after many changes in library code and makefiles. I have some free time and I can make WifiManager suited to bare esp-idf and esp-idf inside PlatformIo. My question is- do somebody need this ? Maybe there are alternatives which i did not find and my work is pointless. Please share your opinion
-
Best way to communicate WiFi details to Adafruit Feather Huzzah ESP8266
#include // Using the Arduino Library Manager, install "WifiManager by tzapu" - lib at https://github.com/tzapu/WiFiManager void setup() { WiFiManager wifiManager; // Start a Wifi link wifiManager.autoConnect("NewDevice"); // (on first use: will set up as a Wifi name; set up by selecting new Wifi network on iPhone for instance) } void loop() { }
-
Easy way to program wifi credentials on a pre- programmed board?
include // Using the Arduino Library Manager, // install "WifiManager by tzapu" // lib at https://github.com/tzapu/WiFiManager void setup() { WiFiManager wifiManager; // Start a Wifi link. wifiManager.autoConnect("NewDevice"); // (on first use: will set up as // a Wifi name; set up by // selecting new Wifi network on // iPhone for instance) }
-
Making it easy for customer/ client to put in wifi credentials onto a pre-programmed IoT device
Is that fork needed still? It seems like the main project claims support for esp32 now? https://github.com/tzapu/WiFiManager
- Making it easy for client/customer to program SSID and password into IoT devices?
-
ESP_WiFiManager deprecated?
Use this one instead: https://github.com/tzapu/WiFiManager
- SOFT AP Mode for ws2812b LED Matrix Sign using esp8266 and Adafruit Neomatrix library.
pubsubclient
-
Using ESP32 for contacting server
If you're after example code, take a look in https://github.com/knolleary/pubsubclient/tree/master/examples
-
it is posible to send Just image/data via wify without displaying them on a browser ? I want to send images to à Rpi via wifi, but thé httpd example are ment to show images on a Web browser only
Here is a fairly basic MQTT example for Arduino-compatible devices.
- USR-TCP232-T2 and MQTT
- Web UI remote control ESP32-CAM with JavaScript MQTT Client project
- PubSubClient Issue: Sending message with length above 16377 bytes fails on ESP32
-
Help with MQTT Login using esp32-cam
Have a look at this example.
-
Trying to integrate to HiveMQ, need to parse URL to ip
What do you mean pubsubclient.h doesn't accept URLs as argument? Check out this example. You can change the mqtt_server variable to be whatever the hivemq URL is.
-
MQTT
On Arduino, the most used library is pubsubclient
-
PlatformIO vs. Arduino: different results
I'm using v 2.8 of Nick O'Leary's pub/sub client (https://github.com/knolleary/pubsubclient). Other libraries are what gets installed from the install of the toolchain. In the case of Arduino this is apt install arduino on Debian and installing the PlatformIO toolchain via the VS Code extension installer.
-
Can client know whether it is a retained message or not?
I am using this MQTT client library for Arduino/ESP, and its API is like this page. The callback function for message reception event is like the following:
What are some alternatives?
esp-idf - Espressif IoT Development Framework. Official development framework for Espressif SoCs.
espMqttClient - MQTT client library for the Espressif devices ESP8266 and ESP32 on the Arduino framework.
ESPAsyncWiFiManager - Port WiFiManager to ESP Async Server
Adafruit_MQTT_Library - Arduino library for MQTT support
esp_wifi_repeater - A full functional WiFi Repeater (correctly: a WiFi NAT Router)
WiFi-remote-for-Bestway-Lay-Z-SPA - Hack - ESP8266 as WiFi remote control for Bestway Lay-Z spa Helsinki
NTP-time-for-ESP8266-and-ESP32 - NTP time example for ESP8266 and ESP32 based on standard functionality
arduino-mqtt - MQTT library for Arduino
ESP_WiFiManager - This is an ESP32 / ESP8266 WiFi Connection Manager with fallback web configuration portal. Use this library for configuring ESP32 (including ESP32-S2 and ESP32-C3), ESP8266 modules' WiFi, etc. Credentials at runtime. You can also specify static DNS servers, personalized HostName, fixed or random AP WiFi channel. With examples supporting ArduinoJson
pubsubclient - A client library for the ESP8266 that provides support for MQTT
wifi-setup - get an IoT device online by first broadcasting a private wifi network that users can connect to to configure your device
Tasmota - Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at