I have below scenario:
- IOT device publishing data to MQTT broker. The receiving client on other side is a full-fledged http web server with a set of REST API’s. So, depending on the message sent by the publisher (in this case an IoT device) to the broker, broker should be able to invoke REST API with parameters. There is no client-side interface to receive the message and act accordingly.
I hope I have explained my problem well. Any help is highly appreciated!
Hi @paragdrring ,
I appreciate your interest in MQTT, welcome to our community!
HiveMQ broker does not have the option to invoke additional API’s out of the box. But you can implement a custom extension to the HiveMQ broker which will be doing that.
To learn how to develop HiveMQ broker extensions, please refer to the HiveMQ Extension Development Guide
To learn how to intercept incoming PUBLISH messages, please refer to the documentation of Publish Inbound Interceptor interface.
I hope this information was helpful. Should you require further assistance, please do not hesitate to ask.
Dasha from HiveMQ Team