adding method to get device's parameters (ip, port…)