This shows you the differences between two versions of the page.
| — | sdk:scripts:sms-read-inbox [2015/05/05 15:04] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== SDK Script sms-read-inbox.are ====== | ||
| + | <code c sms-read-inbox.are> | ||
| + | /* DESC: This script can be used to read the SMS inbox. | ||
| + | * Copyright (C) 2012 NetModule AG, Switzerland | ||
| + | */ | ||
| + | |||
| + | msgs = nb_sms_list(); | ||
| + | |||
| + | printf(" | ||
| + | |||
| + | for (i=0; i< | ||
| + | msg = nb_sms_retrieve(msgs[i]); | ||
| + | if (!msg) continue; | ||
| + | |||
| + | printf(" | ||
| + | |||
| + | ret = nb_sms_delete(msgs[i]); | ||
| + | if (ret == 0) printf(" | ||
| + | } | ||
| + | |||
| + | exit(0); | ||
| + | |||
| + | </ | ||