working get-register-$ code to get data from a device directly via ip address and port