Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

[Bug]: URL Backing Ping is Removed (Hotspot Detect) #125

@manufacturedba

Description

@manufacturedba

Hardware

Other

Connection Type

HTTP

Firmware Version

2.5.15.79da236

Description

Looking at the logic for starting a HTTP connection with a device

private async attemptConnection(
    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()
    const response = await fetch(`${this.portId}/hotspot-detect.html`, {
      signal: this.abortController.signal,
      mode: "no-cors",
    });

    if (!response.ok) {
      throw new Error(`HTTP ${response.status}: ${response.statusText}`);
    }

    return response;
  }

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions