Skip to content
Snippets Groups Projects
Commit ad579f02 authored by Jakob Olsson's avatar Jakob Olsson
Browse files

add verify_pin function to _zte library

parent 0c039ee5
No related branches found
No related tags found
No related merge requests found
...@@ -539,6 +539,11 @@ struct json_object *mobile_enable_pin_zte(char *ip_addr, char *pin) ...@@ -539,6 +539,11 @@ struct json_object *mobile_enable_pin_zte(char *ip_addr, char *pin)
return prepare_request(ip_addr, query, POST); return prepare_request(ip_addr, query, POST);
} }
struct json_object *mobile_verify_pin_zte(char *ip_addr, char *pin)
{
return mobile_set_pin_zte(ip_addr, pin, pin);
}
struct json_object *mobile_set_pin_zte(char *ip_addr, char *current_pin, char *new_pin) struct json_object *mobile_set_pin_zte(char *ip_addr, char *current_pin, char *new_pin)
{ {
char query[1024] = {0}; char query[1024] = {0};
......
...@@ -235,6 +235,21 @@ struct json_object *mobile_set_apn_profile_zte(char *ip_addr, char *name); ...@@ -235,6 +235,21 @@ struct json_object *mobile_set_apn_profile_zte(char *ip_addr, char *name);
*/ */
struct json_object *mobile_enable_pin_zte(char *ip_addr, char *pin); struct json_object *mobile_enable_pin_zte(char *ip_addr, char *pin);
/**
* Function: mobile_verify_pin
*
* Verifies whether input pin is the active one.
*
* Parameter:
* ip_addr - host addr of mobile dongle
* pin - pin to verify
*
* Returns:
* A pointer to a json_object containing the JSON response from the server. {"result": "success"/"failure"}
* NULL on failure.
*/
struct json_object *mobile_verify_pin_zte(char *ip_addr, char *pin);
/** /**
* Function: mobile_set_pin * Function: mobile_set_pin
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment