Skip to content

Deprecate services.mqtt.publish()#60

Open
FabianoEger wants to merge 4 commits intomainfrom
deprecate-legacy-mqtt
Open

Deprecate services.mqtt.publish()#60
FabianoEger wants to merge 4 commits intomainfrom
deprecate-legacy-mqtt

Conversation

@FabianoEger
Copy link
Copy Markdown
Member

Summary

  • Adds warnings.warn(DeprecationWarning) to Services.MQTT.publish()
  • Adds a .. deprecated:: directive in the method docstring
  • Points users to the new MQTT connector and HTTP API as alternatives

Legacy MQTT is being phased out. This change gives SDK consumers a heads-up before the method is removed in a future major version.

Test plan

  • Calling services.MQTT.publish() emits a DeprecationWarning
  • Existing functionality remains unchanged (the request still goes through)
  • Warning includes migration link to docs

Add DeprecationWarning via warnings.warn() to Services.MQTT.publish(),
signaling that Legacy MQTT will be removed in a future major version and
users should migrate to the new MQTT connector or HTTP API.
Mark the MQTT section in the Services docs and the MQTT_Type reference
page as deprecated, directing users to the new MQTT connector or HTTP
API.
Replace verbose multi-line warnings with a concise one-liner linking
to the TagoTIP MQTT transport docs.
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.

1 participant