Help getting started with ST (custom Arduino+Ethernet device: how to connect it to ST?)

Did something similar to monitor my DSC alarm panel, I also used examples from Charles, your code is a lot cleaner than mine.

1 Like

Thanks.

That clears a lot of things up.

From my research, I thought that setting the DNI to the hex IP:PORT of the device was the only way to get parse() to work, but your script proves otherwise.

The documentation states that you can also setup inbound HTTP requests so you can call different functions based on the method.

mappings {
   path("/sample") {
      action: [
         GET: "listMethod",
         PUT: "updateMethod"
     ]
  }
}

Haven’t seen that in docs. probably something new.

Found it in SmartApp’s endpoints section.
Was not applicable to me because I wanted to implement everything on DTH level.