@@ -91,6 +91,8 @@ typedef struct {
91
91
} device_info;
92
92
93
93
/* * PPPCellularInterface class
94
+ *
95
+ * @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
94
96
*
95
97
* This interface serves as the controller/driver for the Cellular
96
98
* modems (tested with UBLOX_C027 and MTS_DRAGONFLY_F411RE).
@@ -105,17 +107,25 @@ class PPPCellularInterface : public CellularBase {
105
107
public:
106
108
107
109
/* * Constructor for a generic modem, using a single FileHandle for commands and PPP data.
110
+ *
111
+ * @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
108
112
*
109
113
* The file handle pointer is not accessed within the constructor, only recorded for later
110
114
* use - this permits a derived class to pass a pointer to a not-yet-constructed member object.
111
115
*/
112
116
MBED_DEPRECATED_SINCE (" mbed-os-5.9" , " This API will be deprecated, use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead." )
113
117
PPPCellularInterface (FileHandle *fh, bool debug = false );
114
118
119
+ /* * Destructor
120
+ *
121
+ * @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
122
+ */
115
123
MBED_DEPRECATED_SINCE (" mbed-os-5.9" , " This API will be deprecated, use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead." )
116
124
virtual ~PPPCellularInterface ();
117
125
118
126
/* * Set the Cellular network credentials
127
+ *
128
+ * @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
119
129
*
120
130
* Please check documentation of connect() for default behaviour of APN settings.
121
131
*
@@ -128,13 +138,17 @@ class PPPCellularInterface : public CellularBase {
128
138
const char *pwd = 0 );
129
139
130
140
/* * Set the pin code for SIM card
141
+ *
142
+ * @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
131
143
*
132
144
* @param sim_pin PIN for the SIM card
133
145
*/
134
146
MBED_DEPRECATED_SINCE (" mbed-os-5.9" , " This API will be deprecated, use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead." )
135
147
virtual void set_sim_pin (const char *sim_pin);
136
148
137
149
/* * Start the interface
150
+ *
151
+ * @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
138
152
*
139
153
* Attempts to connect to a Cellular network.
140
154
* This driver is written mainly for data network connections as CellularInterface
@@ -154,6 +168,8 @@ class PPPCellularInterface : public CellularBase {
154
168
const char *uname = 0 , const char *pwd = 0 );
155
169
156
170
/* * Attempt to connect to the Cellular network
171
+ *
172
+ * @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
157
173
*
158
174
* Brings up the network interface. Connects to the Cellular Radio
159
175
* network and then brings up the underlying network stack to be used
@@ -187,6 +203,8 @@ class PPPCellularInterface : public CellularBase {
187
203
virtual nsapi_error_t disconnect ();
188
204
189
205
/* * Adds or removes a SIM facility lock
206
+ *
207
+ * @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
190
208
*
191
209
* Can be used to enable or disable SIM pin check at device startup.
192
210
* This API sets up flags for the driver which would either enable or disable
@@ -200,6 +218,8 @@ class PPPCellularInterface : public CellularBase {
200
218
void set_sim_pin_check (bool set);
201
219
202
220
/* * Change the pin for the SIM card
221
+ *
222
+ * @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
203
223
*
204
224
* Provide the new pin for your SIM card with this API. Old pin code will be assumed to
205
225
* be set using set_SIM_pin() API. This API have no immediate effect. While establishing
@@ -211,6 +231,8 @@ class PPPCellularInterface : public CellularBase {
211
231
void set_new_sim_pin (const char *new_pin);
212
232
213
233
/* * Check if the connection is currently established or not
234
+ *
235
+ * @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
214
236
*
215
237
* @return true/false If the cellular module have successfully acquired a carrier and is
216
238
* connected to an external packet data network using PPP, isConnected()
@@ -220,6 +242,8 @@ class PPPCellularInterface : public CellularBase {
220
242
virtual bool is_connected ();
221
243
222
244
/* * Get the local IP address
245
+ *
246
+ * @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
223
247
*
224
248
* @return Null-terminated representation of the local IP address
225
249
* or null if no IP address has been received
@@ -228,6 +252,8 @@ class PPPCellularInterface : public CellularBase {
228
252
virtual const char *get_ip_address ();
229
253
230
254
/* * Get the local network mask
255
+ *
256
+ * @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
231
257
*
232
258
* @return Null-terminated representation of the local network mask
233
259
* or null if no network mask has been received
@@ -236,6 +262,8 @@ class PPPCellularInterface : public CellularBase {
236
262
virtual const char *get_netmask ();
237
263
238
264
/* * Get the local gateways
265
+ *
266
+ * @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
239
267
*
240
268
* @return Null-terminated representation of the local gateway
241
269
* or null if no network mask has been received
@@ -252,20 +280,26 @@ class PPPCellularInterface : public CellularBase {
252
280
void modem_debug_on (bool on);
253
281
254
282
/* * Register callback for status reporting
283
+ *
284
+ * @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
255
285
*
256
286
* @param status_cb The callback for status changes
257
287
*/
258
288
MBED_DEPRECATED_SINCE (" mbed-os-5.9" , " This API will be deprecated, use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead." )
259
289
virtual void attach (Callback<void (nsapi_event_t , intptr_t )> status_cb);
260
290
261
291
/* * Get the connection status
292
+ *
293
+ * @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
262
294
*
263
295
* @return The connection status according to nsapi_connection_status_t
264
296
*/
265
297
MBED_DEPRECATED_SINCE (" mbed-os-5.9" , " This API will be deprecated, use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead." )
266
298
virtual nsapi_connection_status_t get_connection_status () const ;
267
299
268
300
/* * Set blocking status of connect() which by default should be blocking
301
+ *
302
+ * @deprecated This API will be deprecated in mbed-os-5.9. Use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.
269
303
*
270
304
* @param blocking true if connect is blocking
271
305
* @return 0 on success, negative error code on failure
0 commit comments