Arduino-TR-064-SOAP-Library
Arduino-TR-064-SOAP-Library copied to clipboard
TR064::init crashes my ESP8266
Describe the bug
TR064::init fails with current ESP8266HTTPClient library.
Expected/Attempted behavior
TR064::init returns if the connection is working.
Observed behavious The ESP8266 crashes and reboots.
µController Wemos D1 mini
Reason
The current HTTPClient library takes a clone of the WifiConnection, and performs the HTTP interaction on that clone. You must not use &tr064connection (the original) in the xmlTakeParam functions, instead, use http.getStreamPtr() (returning the current clone). The develop branch contains working code.