Mistake on this page?
Report an issue in GitHub or email us
UBLOX_N2XX_CellularSMS.h
1 /*
2  * Copyright (c) 2019, Arm Limited and affiliates.
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef UBLOX_N2XX_CELLULAR_SMS_H_
19 #define UBLOX_N2XX_CELLULAR_SMS_H_
20 
21 #include "AT_CellularSMS.h"
22 
23 #if MBED_CONF_CELLULAR_USE_SMS
24 
25 namespace mbed {
26 
27 class UBLOX_N2XX_CellularSMS : public AT_CellularSMS {
28 
29 public:
30 
31  UBLOX_N2XX_CellularSMS(ATHandler &atHandler, AT_CellularDevice &device);
32  virtual ~UBLOX_N2XX_CellularSMS();
33 
34  virtual nsapi_error_t set_cpms(const char *memr, const char *memw, const char *mems);
35 
36  virtual nsapi_size_or_error_t set_cscs(const char *chr_set);
37 
38  virtual nsapi_size_or_error_t get_sms(char *buf, uint16_t buf_len, char *phone_num, uint16_t phone_len,
39  char *time_stamp, uint16_t time_len, int *buf_size);
40 
41  virtual nsapi_error_t delete_all_messages();
42 
43 };
44 
45 } // namespace mbed
46 
47 #endif // MBED_CONF_CELLULAR_USE_SMS
48 
49 #endif // UBLOX_N2XX_CELLULAR_SMS_H_
signed int nsapi_error_t
Type used to represent error codes.
Definition: nsapi_types.h:140
signed int nsapi_size_or_error_t
Type used to represent either a size or error passed through sockets.
Definition: nsapi_types.h:151
Definition: ATHandler.h:46
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.