SmartApp accessing LAN device

hubAction requires you to set your DNI as the IP:PORT in hex. All responses are handled by the parse() function. Also, if you are calling hubAction within a function then you may need to return the action in order for it to work properly. Check out my D-Link camera devicetype for an example of a working LAN device using hubAction: