how to control iot device remotely