Skip to content

Commit a434583

Browse files
authored
Merge pull request #10442 from trowbridgec/patch-1
Cellular: Make AT_CellularContext::get_context() virtual
2 parents 659c099 + a457b80 commit a434583

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

features/cellular/framework/AT/AT_CellularContext.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ class AT_CellularContext : public CellularContext, public AT_CellularBase {
9999
virtual void deactivate_ip_context();
100100
virtual void set_disconnect();
101101
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);
102106
private:
103107
#if NSAPI_PPP_AVAILABLE
104108
nsapi_error_t open_data_channel();
@@ -110,23 +114,19 @@ class AT_CellularContext : public CellularContext, public AT_CellularBase {
110114
nsapi_error_t find_and_activate_context();
111115
nsapi_error_t activate_ip_context();
112116
void check_and_deactivate_context();
113-
bool set_new_context(int cid);
114-
bool get_context();
115117
nsapi_error_t delete_current_context();
116-
pdp_type_t string_to_pdp_type(const char *pdp_type);
117118
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);
119119
void ciot_opt_cb(mbed::CellularNetwork::CIoT_Supported_Opt ciot_opt);
120120
virtual void do_connect_with_retry();
121121
private:
122122
bool _is_connected;
123123
ContextOperation _current_op;
124-
char _found_apn[MAX_APN_LENGTH];
125124
FileHandle *_fh;
126125
rtos::Semaphore _semaphore;
127126
rtos::Semaphore _cp_opt_semaphore;
128127

129128
protected:
129+
char _found_apn[MAX_APN_LENGTH];
130130
// flag indicating if CP was requested to be setup
131131
bool _cp_req;
132132
// flag indicating if Non-IP context was requested to be setup

0 commit comments

Comments
 (0)