Ejemplo n.º 1
0
        private void search_device()
        {
            search_device_json json = new search_device_json {
                oem_type = "default"
            };
            string        param = JsonConvert.SerializeObject(json);
            rs_error_code err   = NativeMethods.rs_search_device(param, search_device_callback_, this.Handle);

            Console.WriteLine("======<rs_search_device> result:{0}", err);
        }
Ejemplo n.º 2
0
        private void login_device()
        {
            device_login_json json = new device_login_json {
                ip_or_id            = "172.18.12.63",
                media_port          = 9988,
                user                = "******",
                password            = "******",
                ddns_id_server_addr = "",
                p2p_type            = "ip",
                oem_type            = "default"
            };

            string        param = JsonConvert.SerializeObject(json);
            rs_error_code err   = NativeMethods.rs_device_login(device_id_, param, connction_callback_, alarm_callback_, this.Handle);

            Console.WriteLine("======<rs_device_login> result:{0}", err);
        }
Ejemplo n.º 3
0
        private void logout_device()
        {
            rs_error_code result = NativeMethods.rs_device_logout(device_id_);

            Console.WriteLine("======<rs_device_logout> result:{0}\n", result);
        }