Device Handler to send HTTP POST command?


#1

I am new to this forum as well as Smartthings.

Can anyone point me to a simple example to create a device handler which can simply send a simple fixed string to a specific IP address as an http POST command?

Appreciate it!


LAN Ethernet IP WEB Relay device
(Martin) #2

I’ve used the following device handler, works as a virtual switch sending internal or external url post commands.
Thanks and good luck


#3

Thank you for the quick reply. I will try it.


#4

When I go to create the device, it is asking for a “Device Network ID”. What is that, where do I find it??


(Eric) #5

If it is a “virtual device” meaning your hub does not discover the devices, you just communicate directly to them over HTTP you just make one up. I do N, N is a 9 digit number. You just want it to be unique.