UDP Responses

Sorry if this question has been asked before, but I could not find anything when searching.

I am using a third party module and have successfully sent UDP messages to the module from the dashboard. After retrieving the ip and port of the UDP sent message , the module is able to respond using a UDP message which shows up in the activity log.

My question is whether it is possible to respond to the UDP message using UDP response such that topics are created so that routes can be generated based on the topics.

I’ve tried encoding JSON topics into JSON message in the UDP response, but the entire JSON message is returned as data and no topics are generated.

The same JSON message when sent as a TCP message does generate Topics.

I am wondering if this is just a limitation of UDP responses.

Thanks, Jim

Right now the topics attached to any response to a data message are fixed. So you’ll get back a couple topics like the deviceid and _API_RESP_ but it can’t be customized beyond that.
If you need custom topics you’ll have to use the TCP inbound endpoint.

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