# Want to query modbus sensor via mqtt

**URL:** <https://discourse.nodered.org/t/want-to-query-modbus-sensor-via-mqtt/42085>\
**Category:** General\
**Created:** [5 March 2021 12:08 UTC](https://discourse.nodered.org/t/want-to-query-modbus-sensor-via-mqtt/42085 "2021-03-05T12:08:38Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 March 2021 18:36 UTC](https://discourse.nodered.org/t/want-to-query-modbus-sensor-via-mqtt/42085/22 "2021-03-09T18:36:28Z")

</div>

> [@bachloo.rahul](#):
>
> can u see above marked and highlighted fields

I can see (not that i understand as I dont have any of these components, nor experience of them), **however that still doesn't answer**...

> [@Steve-Mcl](#):
>
> Why is nothing coming out of MQTT? What sends to that topic?

  

* * *

The problem I have is from my perspective, (in simple terms) I am not fully understanding what talks to what - you keep mentioning a modbus sensor, a gateway, MQTT but it is unclear what is connected to what. couple that with not knowing anything about your gateway device.

* * *

#### Bottom line...

- I can help you format any message or payload - pretty much any shape object you need.
- I can help you convert binary data into nicely formatted object or string
- I can help you translate an MQTT payload into a dynamic modbus read request (for the flex-getter - at node-red)
- I can help you translate the modbus result back into any format you wish
- I can help you send that result back over MQTT
- I CANNOT help you with a gateway I have never seen unless you provide crystal clear and concise information

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [8 May 2021 18:49 UTC](https://discourse.nodered.org/t/want-to-query-modbus-sensor-via-mqtt/42085/24 "2021-05-08T18:49:04Z")

</div>

Closed on 8 May 2021 18:49 UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/want-to-query-modbus-sensor-via-mqtt/42085.md?page=1)
