@@ -99,6 +99,10 @@ class AT_CellularContext : public CellularContext, public AT_CellularBase {
99
99
virtual void deactivate_ip_context ();
100
100
virtual void set_disconnect ();
101
101
virtual void deactivate_context ();
102
+ virtual bool get_context ();
103
+ pdp_type_t string_to_pdp_type (const char *pdp_type);
104
+ AT_CellularBase::CellularProperty pdp_type_t_to_cellular_property (pdp_type_t pdp_type);
105
+ bool set_new_context (int cid);
102
106
private:
103
107
#if NSAPI_PPP_AVAILABLE
104
108
nsapi_error_t open_data_channel ();
@@ -110,23 +114,19 @@ class AT_CellularContext : public CellularContext, public AT_CellularBase {
110
114
nsapi_error_t find_and_activate_context ();
111
115
nsapi_error_t activate_ip_context ();
112
116
void check_and_deactivate_context ();
113
- bool set_new_context (int cid);
114
- bool get_context ();
115
117
nsapi_error_t delete_current_context ();
116
- pdp_type_t string_to_pdp_type (const char *pdp_type);
117
118
nsapi_error_t check_operation (nsapi_error_t err, ContextOperation op);
118
- AT_CellularBase::CellularProperty pdp_type_t_to_cellular_property (pdp_type_t pdp_type);
119
119
void ciot_opt_cb (mbed::CellularNetwork::CIoT_Supported_Opt ciot_opt);
120
120
virtual void do_connect_with_retry ();
121
121
private:
122
122
bool _is_connected;
123
123
ContextOperation _current_op;
124
- char _found_apn[MAX_APN_LENGTH];
125
124
FileHandle *_fh;
126
125
rtos::Semaphore _semaphore;
127
126
rtos::Semaphore _cp_opt_semaphore;
128
127
129
128
protected:
129
+ char _found_apn[MAX_APN_LENGTH];
130
130
// flag indicating if CP was requested to be setup
131
131
bool _cp_req;
132
132
// flag indicating if Non-IP context was requested to be setup
0 commit comments