Skip to content

TR064::init crashes my ESP8266 #72

@karcherm

Description

@karcherm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions