mqtt-datasource icon indicating copy to clipboard operation
mqtt-datasource copied to clipboard

Use URL-safe Base64 encoding for the topic name

Open alexander-akhmetov opened this issue 1 year ago • 1 comments

Use url-safe base64 encoding to encode the topic name. It allows subscribing to topics with special characters in the name, for example $SYS/+, etc.

Fixes #111, #105, #90

How to test

  1. Start Grafana with the plugin:
mage -v
yarn build
GRAFANA_VERSION=11.1.0 yarn run server
  1. Run the test MQTT broker:
node scripts/test_broker.js
  1. Create a new MQTT data source: tcp://host.docker.internal:1883

  2. Subscribe to $SYS/my:topic/second/1 in Explore

alexander-akhmetov avatar Aug 24 '24 09:08 alexander-akhmetov