DTH Commands Returning Values

What is the correct syntax for a dth command to return values to a smart app? I am able to add something like:
commad “foo”

and pass values to the dht, but I have not been able to return values from the DHT. What’s the magic?

Thanks,
Jose

DTH command aren’t supposed to return values to the SmartApp by design (it works under some circumstances but that isn’t reliable).

DTH’s and SmartApps should communicate using attributes.