Skip to content

Commit 83ab23f

Browse files
author
Ari Parkkila
committed
Cellular: Mark to be deprecated in CellularDevice
1 parent e03180d commit 83ab23f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

features/cellular/framework/API/CellularDevice.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,22 @@ class CellularDevice {
222222
/** Stop the current operation. Operations: set_device_ready, set_sim_ready, register_to_network, attach_to_network
223223
*
224224
*/
225+
MBED_DEPRECATED_SINCE("mbed-os-5.15", "Use CellularDevice::shutdown() instead.")
225226
void stop();
226227

227228
/** Get the current FileHandle item used when communicating with the modem.
228229
*
229230
* @return reference to FileHandle
230231
*/
232+
MBED_DEPRECATED_SINCE("mbed-os-5.15", "Use CellularDevice::get_filehandle() instead.")
231233
FileHandle &get_file_handle() const;
232234

235+
/** Get the current filehandle.
236+
*
237+
* @return pointer to filehandle or NULL
238+
*/
239+
FileHandle *get_filehandle() const;
240+
233241
/** Get event queue that can be chained to main event queue.
234242
* @return event queue
235243
*/

features/cellular/framework/device/CellularDevice.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ FileHandle &CellularDevice::get_file_handle() const
5858
return *_fh;
5959
}
6060

61+
FileHandle *CellularDevice::get_filehandle() const
62+
{
63+
return _fh;
64+
}
65+
6166
events::EventQueue *CellularDevice::get_queue()
6267
{
6368
return &_queue;

0 commit comments

Comments
 (0)