-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Please describe.
Topic names are autogenerated from the event name or observable name, & prefixed with thing ID, which is fine.
We should also allow registering custom topic names just like one can add a custom URL path for the HTTP protocol.
Describe the solution you'd like
Rough steps:
- define
add_observableandadd_eventmethods with signature(affordance: InteractionAffordance, topic: str) -> Noneonhololinked.server.mqtt.MQTTPublisher. - store the custom topic names per interaction affordance (events and observable properties only, we dont support MQTT req rep yet). A rough idea of point 1 & 2 can be seen in HTTP implementation
- use the topic in the MQTT publish method, fit the value into the TD as well
Please add docs. Test locally as we need too add some infrastructure in CI/CD to test in pipeline.
Additional context
If contributing first time, CONTRIBUTING.md can help
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Ready