You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privateasyncattemptConnection(params: Types.HttpConnectionParameters,): Promise<Response>{const{ address, tls =false}=params;this.portId=`${tls ? "https://" : "http://"}${address}`;// We create a dummy request here just to have a Response object to work with// The actual connection check is done via ping()constresponse=awaitfetch(`${this.portId}/hotspot-detect.html`,{signal: this.abortController.signal,mode: "no-cors",});if(!response.ok){thrownewError(`HTTP ${response.status}: ${response.statusText}`);}returnresponse;}
Hardware
Other
Connection Type
HTTP
Firmware Version
2.5.15.79da236
Description
Looking at the logic for starting a HTTP connection with a device
It appears to rely on
hotspot-detect.html
to infer a successful connection before polling; however, that router handler no longer exists in the latest firmware.Given its response content is not used for reading from the radio API, can this be removed? Asking for context before I submit a PR
Relevant console output
The text was updated successfully, but these errors were encountered: