mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1723] Wifimanager and ESP Mail Client #1459
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1459
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @imoldovavan on GitHub (Mar 19, 2024).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1723
I get this error in this code:
smtp.setClient(&wm);src\main.cpp:84:18: error: cannot convert 'WiFiManager*' to 'Client*'
84 | smtp.setClient(&wm);
| ^~~
| |
| WiFiManager*
Can ESP Mail Client be used with wifimanager???
Thank you...
@tablatronix commented on GitHub (Mar 19, 2024):
Not like that, whats the syntax for that library what are you suppose to be passing to it ?
You probably need to make your own webclient obj
@imoldovavan commented on GitHub (Mar 20, 2024):
This is sample code from their examples/SMTP/External_Client/Generic/Generic.io
// Your network client class object e.g. WiFiClient, EthernetClient and GSMClientNetworkClient net_client;I replaced Network Client with WiFiManager and net_client with wm so my code is:
WiFiManager wm;The link to this example code is
[examples/SMTP/External_Client/Generic](url)
Line 44 and 83
here is my code:
Thank you for your help.
@tablatronix commented on GitHub (Mar 21, 2024):
Wm doesn't replace wifi client, you will have to use the mail constructor without a wifi connection and use wm before hand. Or use the regular one and handle wm before that if
@imoldovavan commented on GitHub (Mar 22, 2024):
Got it. Thank you.