File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
features/cellular/easy_cellular Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -336,6 +336,16 @@ NetworkStack *EasyCellularConnection::get_stack()
336
336
}
337
337
}
338
338
339
+ CellularDevice *EasyCellularConnection::get_device ()
340
+ {
341
+ return _cellularConnectionFSM->get_device ();
342
+ }
343
+
344
+ UARTSerial *EasyCellularConnection::get_serial ()
345
+ {
346
+ return &_cellularSerial;
347
+ }
348
+
339
349
} // namespace
340
350
341
351
#endif // CELLULAR_DEVICE
Original file line number Diff line number Diff line change @@ -135,6 +135,19 @@ class EasyCellularConnection: public CellularBase {
135
135
* @param plmn operator in numeric format. See more from 3GPP TS 27.007 chapter 7.3.
136
136
*/
137
137
void set_plmn (const char *plmn);
138
+
139
+ /* * Get the cellular device from the cellular state machine
140
+ *
141
+ * @return cellular device
142
+ */
143
+ CellularDevice *get_device ();
144
+
145
+ /* * Get the UART serial file handle used by cellular subsystem
146
+ *
147
+ * @return address of cellular UART serial
148
+ */
149
+ UARTSerial *get_serial ();
150
+
138
151
protected:
139
152
140
153
/* * Provide access to the NetworkStack object
You can’t perform that action at this time.
0 commit comments