0

HTTP device, different path in host URL

Artem Kuteynikov 1 year ago in Devices / Http updated 1 year ago 4

Hello,

To control a device i should POST requests on different UTIs: http://[IP]:[PORT|/[PATH].

Everything works fine, but i have to create different HTTP devices for each function of one physical device. So, is there a possibility to import[PATH] as a variable or a part of request?

Thanks.

+1

Hello,

Simply put the IP and port in your device host url, then the path to the Command data underneath. As you can have multiple Command data node for a given device, you can therefore have various path for a unique IP and port.

Hope this answer the question.

Regards,

Hello,

Thank you very much.

It was helpful, on my previous attempts i`ve missed slash at the beginning of the [PATH] typing it in Command data.

Please, don`t consider me to be insolent, but perhaps you could have given some advice on my previous question/post:

" a device publishes its services as mDNS message/reply, is there a chance to fetch data from such message?

As far as i can see mDNS utilizes UDP, but Basic driver configured as: Udp, Device_ip_address, src_port_number (as remote port), dst_port_number (as local port), ASCII, text, won`t do any good. Sniffer shows that device posts requests/replies which contain data i need though."

Thanks.

Happy to read it helped. As an additional advice, put the slash at the end of the url, not in the front of the command (used to be a problem in previous version).

Not familiar with mDNS protocol details. Need to investigate further.

Regards,