Skip to content

Cellular: Make AT_CellularContext::get_context() virtual #10442

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions features/cellular/framework/AT/AT_CellularContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ class AT_CellularContext : public CellularContext, public AT_CellularBase {
virtual void deactivate_ip_context();
virtual void set_disconnect();
virtual void deactivate_context();
virtual bool get_context();
pdp_type_t string_to_pdp_type(const char *pdp_type);
AT_CellularBase::CellularProperty pdp_type_t_to_cellular_property(pdp_type_t pdp_type);
bool set_new_context(int cid);
private:
#if NSAPI_PPP_AVAILABLE
nsapi_error_t open_data_channel();
Expand All @@ -110,23 +114,19 @@ class AT_CellularContext : public CellularContext, public AT_CellularBase {
nsapi_error_t find_and_activate_context();
nsapi_error_t activate_ip_context();
void check_and_deactivate_context();
bool set_new_context(int cid);
bool get_context();
nsapi_error_t delete_current_context();
pdp_type_t string_to_pdp_type(const char *pdp_type);
nsapi_error_t check_operation(nsapi_error_t err, ContextOperation op);
AT_CellularBase::CellularProperty pdp_type_t_to_cellular_property(pdp_type_t pdp_type);
void ciot_opt_cb(mbed::CellularNetwork::CIoT_Supported_Opt ciot_opt);
virtual void do_connect_with_retry();
private:
bool _is_connected;
ContextOperation _current_op;
char _found_apn[MAX_APN_LENGTH];
FileHandle *_fh;
rtos::Semaphore _semaphore;
rtos::Semaphore _cp_opt_semaphore;

protected:
char _found_apn[MAX_APN_LENGTH];
// flag indicating if CP was requested to be setup
bool _cp_req;
// flag indicating if Non-IP context was requested to be setup
Expand Down