nimaltd / gsm_v5

gsm module library for STM32 LL
GNU General Public License v3.0
232 stars 86 forks source link

add func to search number from phonebook #47

Closed Ivanchenko59 closed 1 year ago

Ivanchenko59 commented 1 year ago

Functions have been added to search for a number by index in the simcard phonebook, and to check for the existence of a number in the book.

bool gsm_getPhonebookNumber(uint16_t index, char* getnumber); Takes the index of the number in the phonebook, and the buffer into which the number located by the index will be written.

bool gsm_isNumberExistInPhonebook(char* number, uint8_t from, uint8_t to); Takes a number string, and a range to search the book. Returns true if the number is found in the book. False if not found.

Functions can be useful if the sim800 module must respond only to the numbers that are in the address book. In my case it is used for gps tracker.