Send query request from outside of InfluxDB via MQTT

Hello!

I am currently trying to access data from InfluxDB via MQTT, but i havent found any way. I am currently programming in the TwinCAT. One way i could get the data would be by opening a Terminal via TwinCAT and entering a curl command, but i was asking myself if there is a better/smoother solution to this.

I want to receive data via MQTT, because thats how i insert data point to influxDB from TwinnCAT.

“I am currently trying to access data from InfluxDB via MQTT”

“I want to receive data via MQTT, because thats how i insert data point to
influxDB from TwinnCAT”

For me it is not clear whether you are trying to get MQTT to write data into
InfluxDB, or get data out of InfluxDB, via MQTT, into something else.

Please give a simple summary of what your data source writing into InfluxDB is,
what your data consumer reading out of InfluxDB is, and where MQTT fits into the
flow.

Thanks,

Antony.

Whether trying to write data into InfluxDB via MQTT or retrieve (query) data via MQTT, I would use Node-RED for this. Search or post on their forum for more.

currently different datapoints are saved inside a bucket in influxdb. What i want is to retrieve those datavalues from an influxdb query via mqtt means i want to subscribe to a certain topic where i can expect the data coming.

I expect it to be like this:

  1. send query request
  2. receive query results on topic #query reesults

thy i will look into it