Closed pvint closed 5 years ago
Original comment by sijun1983 (Bitbucket: sijun1983, ).
Got the same problem.
With
#!arduino
#include <ESP8266WiFi.h>
//#include "fauxmoESP.h"
#include <ESP8266HTTPClient.h>
String payload = http2.getString();
Serial.println(payload);
works, with the fauxmoESP.h enabled and used, it doesnt. :( Any ideas?
Original comment by Xose Pérez (Bitbucket: [Xose Pérez](https://bitbucket.org/Xose Pérez), ).
This would probably mean there is an incompatibility between the ESP8266HTTPClient library and the AsyncTCP library fauxmoESP uses. Anyway, I would suggest to use an AsyncClient instead, is more reliable and your code will be lighter (https://github.com/me-no-dev/AsyncTCP).
Original report by Brendan Sleight (Bitbucket: bmsleight, GitHub: bmsleight).
With fauxmoESP enabled I get [HTTP] GET... failed, error: connection refused, without fauxmoESP I have no errors.
Example:-
Output where #define FAUXMO true
Output where #define FAUXMO false
What I am doing wrong ?