Skip to content

feat(http): expose IPv6 address in /json/report#10542

Open
Xavierhorwood wants to merge 3 commits into
meshtastic:developfrom
Xavierhorwood:feat/json-report-ipv6
Open

feat(http): expose IPv6 address in /json/report#10542
Xavierhorwood wants to merge 3 commits into
meshtastic:developfrom
Xavierhorwood:feat/json-report-ipv6

Conversation

@Xavierhorwood
Copy link
Copy Markdown
Contributor

Add ipv6_local and ipv6_global string fields to the wifi object emitted by handleReport() to match IPv4.

if IPv6 is off both fields are omitted from the response.
if IPv6 is on and has a IPV6 address it will return the global address and link local.
if IPv6 is on and does not have a IPV6 global address it will return "::".

🤝 Attestations

  • I have tested that my proposed changes behave as described.
  • I have tested that my proposed changes do not cause any obvious regressions on the following devices:
    • Heltec (Lora32) V3
    • LilyGo T-Deck
    • LilyGo T-Beam - MESHTASTIC_EXCLUDE_WEBSERVER was set to 0 for this test
    • RAK WisBlock 4631
    • Seeed Studio T-1000E tracker card
    • Other Heltec (Lora32) V4.2

Add ipv6_local and ipv6_global string fields to the wifi object emitted by
handleReport() so clients can discover the device's IPv6 connectivity
without scraping serial logs. Mirrors the version guard already used in
WiFiAPClient.cpp's ARDUINO_EVENT_WIFI_STA_GOT_IP6 handler.
Gate ipv6_local/ipv6_global emission on config.network.ipv6_enabled so the
report stays quiet on devices with IPv6 turned off. When enabled but no
global address has been acquired yet, the global field still emits "::"
so clients can distinguish "disabled" from "pending RA".
@github-actions github-actions Bot added the enhancement New feature or request label May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant