eclipse / org.eclipse.sensinact.gateway

Eclipse Public License 2.0
6 stars 12 forks source link

Fixed computation of topic segments for MQTT DevFactory context #419

Closed tcalmant closed 1 week ago

tcalmant commented 2 weeks ago

The MQTT device factory adds topic segments to the mapping context, e.g. foo/bar gives context.topic-0 set to foo. This was failing if the the topic was starting with a /, e.g. /foo/bar.

This PR fixes the segmentation process, following the MQTT specification: