Skip to content

Remove MQTT telemetry subsystem#45

Merged
mgrossmann merged 3 commits intomainfrom
issue-44-remove-mqtt-telemetry
Apr 8, 2026
Merged

Remove MQTT telemetry subsystem#45
mgrossmann merged 3 commits intomainfrom
issue-44-remove-mqtt-telemetry

Conversation

@mgrossmann
Copy link
Copy Markdown
Contributor

Removes the MQTT telemetry subsystem from the HTTP server core, as decided for HTTPD 4.0.0.

Changes

  • include/httpd.h: Removed HTTPT/HTTPTC struct definitions and typedefs. Field at offset 0x94 (was HTTPT *httpt) replaced with void *unused_94 for ABI stability. HTTPX slot at 0x10C (was mqtc_pub) replaced with void *unused_10C.
  • include/httpcgi.h: Same HTTPX slot replacement, removed MQTC typedef.
  • include/httppub.h: Deleted.
  • src/httpx.c: NULL placeholder at offset 0x10C.
  • src/httpd.c: Removed telemetry_thread, http_process_telemetry* helper functions, all http_pubf / http_pub_datetime calls, and now-unused local variables.
  • src/httpdsrv.c: Removed httpt display row from server status page.
  • src/httpstat.c: Removed http_pubf calls and the now-unused counter variables.
  • src/httppubf.c: Deleted.
  • project.toml: Removed mqtt370 dependency.

Fixes #44

Removes HTTPT struct, telemetry_thread, and all related MQTT
publishing from the HTTP server core. The mqtt370 dependency
is also removed from project.toml.

Affected files:
- include/httpd.h: removed HTTPT/HTTPTC typedefs and struct definitions,
  replaced httpt field at offset 0x94 with void *unused_94,
  replaced mqtc_pub slot at offset 0x10C with void *unused_10C
- include/httpcgi.h: same HTTPX slot replacement, removed MQTC typedef
- include/httppub.h: deleted
- src/httpx.c: NULL placeholder at offset 0x10C
- src/httpd.c: removed telemetry_thread, http_process_telemetry*,
  related MQTT publish calls, and unused variables
- src/httpdsrv.c: removed httpt display row
- src/httpstat.c: removed http_pubf calls and now-unused variables
- src/httppubf.c: deleted
- project.toml: removed mqtt370 dependency

Fixes #44
The http_lua_publish() function referenced HTTPT, MQTC, and mqtc_pub
which no longer exist after the MQTT telemetry removal. Replace the
function body with a stub that returns "not available".

Fixes #44
…sh stub

httpd048.c still called http_pubf() (MQTT telemetry), causing unresolved
external HTTP@PUB at link time. http_lua_publish() stub used lua_pushinteger
which expands via HTTPLUAX macro to httpd->luax, requiring an httpd pointer.
@mgrossmann mgrossmann merged commit ec6efa5 into main Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[HTTPD 4.0.0] Remove MQTT telemetry

1 participant