eclipse / org.eclipse.sensinact.gateway

Eclipse Public License 2.0
6 stars 12 forks source link

Sensorethings via MQTT with existing MQTT Connection #389

Open juergen-albert opened 2 months ago

juergen-albert commented 2 months ago

Currently the MQTT addon for Sensorethings starts it own MQTT Server. This is convenient, but we should also provide a Version, that can use an existing MQTT Server.

timothyjward commented 2 months ago

Currently the MQTT addon for Sensorethings starts it own MQTT Server. This is convenient, but we should also provide a Version, that can use an existing MQTT Server.

This is not possible. The entire specification is predicated on being able to see which topics a listener is registered to. This is not possible as part of the MQTT standards, and requires a provider-specific hook in implementations which do support it. In the case of Moquette this is a callback interface registered with the broker when it starts.

juergen-albert commented 2 months ago

Ah, okay. I wasn't aware of that part. Instead of using MQTT we might want to think about live data updates via SSE or Websockets.

timothyjward commented 1 month ago

Given that it isn't possible to achieve, can we close this issue?