mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-02 07:27:42 +00:00
Update xdrv_01_webserver.ino
Fix compile error
This commit is contained in:
parent
05b0280019
commit
95da493325
@ -2205,7 +2205,7 @@ int WebSend(char *buffer)
|
|||||||
#else
|
#else
|
||||||
WiFiClient http_client;
|
WiFiClient http_client;
|
||||||
HTTPClient http;
|
HTTPClient http;
|
||||||
if (http.begin(client, UrlEncode(url))) { // UrlEncode(url) = |http://192.168.178.86/cm?cmnd=POWER1%20ON|
|
if (http.begin(http_client, UrlEncode(url))) { // UrlEncode(url) = |http://192.168.178.86/cm?cmnd=POWER1%20ON|
|
||||||
#endif
|
#endif
|
||||||
int http_code = http.GET(); // Start connection and send HTTP header
|
int http_code = http.GET(); // Start connection and send HTTP header
|
||||||
if (http_code > 0) { // http_code will be negative on error
|
if (http_code > 0) { // http_code will be negative on error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user