Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Response Handling In MQTT

Response handling in MQTT

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By Bhaumik, 16 June, 2020
Forums
Gurux.MQTT

Hi Mikko,

Currently, I am testing IS15959-2 meter.
We are sending multiple requests to the multiple meters by calling middleware service. The service is sending request payload torespective to meters.

And all meters will send a response on MQTT.
For that, we have created a single MQTT client and multiple subscribers.

Now the case if we sending SNRM requests to multiple meters, all responses will be received on subscribed events. In that case how to handle all responses using a single MQTT client.

If multiple MQTT clients and its subscriber event used then we are able to handle responses for device wise.
For the above-described scenario how to handle responses?

If more data available then how to send the next frame/block request and merge response?

Can you please provide your feedback on this.

Profile picture for user Kurumi

Kurumi

5 years 4 months ago

Hi,

Hi,

You need to send the MQTT request to the one-meter at the time. You need to define a target meter using meter's serial number, etc to MQTT topic.

If you send MQTT messages like broadcast, all the meters will reply and it's not right.

BR,
Mikko

Bhaumik

5 years 4 months ago

Hi Mikko,

Hi Mikko,

I am sending a request to the meter by calling API. API will transfer messages to the respective meter. And respective meter sends a response on MQTT.

I am doing this process for multiple meters using Thread. Like for 10 meters, a separate thread will call to API. And at MQTT subscriber all meter's response will be received. In that case how to handle the response.

Profile picture for user Kurumi

Kurumi

5 years 4 months ago

Hi,

Hi,

If you are using serial number as server address this is possible if the meter supports it.
Otherwise, you can't do it like this. There is no way to detected the sender from the message bytes.

You must handle it mapping the meter and MQTT request somehow.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 10/29/2025 - 08:51
    gurux.dlms.c 9.0.2510.2901
  • Thu, 10/16/2025 - 09:59
    gurux.dlms.java 4.0.83
  • Wed, 10/08/2025 - 10:21
    gurux.dlms.c 9.0.2510.0801
  • Fri, 09/26/2025 - 10:02
    gurux.dlms.cpp 9.0.2509.2601
  • Fri, 09/26/2025 - 09:45
    gurux.dlms.c 9.0.2509.2601

New forum topics

  • How to get/convert user readable format data from readRowsByRange
  • Insufficient memory to continue the execution of the program.
  • The client instance code failed to connect to the electricity meter for authentication
  • Unable to Release Request when closing connection with meter.
  • Failed to receive reply from the device in given time.
More

Who's new

  • Milan
  • toto_hudson
  • cgf04df@gmail.com
  • Notniat
  • Sanjaykumar5115
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin