Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fingerprint x100-x cant write template #78

Open
myhardez opened this issue Jun 29, 2019 · 3 comments
Open

Fingerprint x100-x cant write template #78

myhardez opened this issue Jun 29, 2019 · 3 comments

Comments

@myhardez
Copy link

I try to write template
but i have error.
please help me


$options = [
'ip' => '192.168.200.4',
'com_key' => xxxxx,
'soap_port' => 80,
'udp_port' => 4370,
'encoding' => 'utf-8'
];

$tad_factory = new TADFactory($options);
$tad = $tad_factory->get_instance();

$user_info = [
'pin' => 2,
'name' => 'Mustapha Ramadhan',
'password' => 8888,
'privilege' => 0,
];
$r = $tad->set_user_info($user_info);

$template1_vx9 = "ocosgoulTUEdNKVRwRQ0I27BDTEkdMEONK9KQQunMVSBK6VPLEENk9MwgQ+DP3PBC1FTXEEG4ihpQQQ3vFQBO4K+WwERYilHAQ8ztktBEBbKQ0ELDtJrwQ7dqCiBCz+/IgEGKrBjQQhEO0zBFQNDQYEKFbhrQQdLF1wBDxclfUELMNFXwQRvvmHBCslKUAEZfU1OQRzmIU5BXRW0eoEKPMltgQnQGUyBJQSfRIEUSzIdAQ45l3gBByHUTMEJ5yVhQQmi0UZBFHvYPUEGeKxTAQ6rFGNBCIYURoEOZS9VwR+1M4RoE5m0DRUTF8DHd6HdqxHAxWmj393M28DDX2FkanKi/t7LGsDCWqGarmt1BaL/25nAwVaiipu/cgcQGKG6mcDBU6KYmr5wChQcobmJIsDBUKKJmZ1uExyi+ZaYwMFMgU2CQCSinYdnJsDBR4Ghl3Q4owa3dnfAwUamdlZlR5p2Zi7AwUSndERlfOpWZlfAwUOiQzVkLDhDopRUVTLAwT2iQ0ZjIzVMolNFRcDBN6I0ZlQebVaiEjRVwMEyolVVUxVxXKEBRUTAwS+iZVYyD3JhoQJFTMDBLKJlVUIKcWShBVVTwMIkoWVkFQhyaaEVZ1rAwh6hVlUPAW+iNGd3wMIToWdlBnWiRWZ3aMDDCqRmZjRpZmrAxASjd2Vnh2/gAA==";
$template1_data = [
'pin' => $user_info['pin'],
'finger_id' => 0,
'size' => 514,
'valid' => 1,
'template' => $template1_vx9
];
$response = $tad->set_user_template( $template1_data );

echo $response->to_json();

---------RESULT--------------------
{"Row":{"Result":"0","Information":"Write the template fail!"}}

@whoamikenken
Copy link

How do you get the template?

@alkaram-ammar
Copy link

How do you get the template?

If it is recorded you can get VIA get_response_body function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@myhardez @whoamikenken @alkaram-ammar and others