mirror of https://github.com/ARMmbed/mbed-os.git
Cellular: Removed API get_connection_status() from CellularNetwork
This was left accidentally after refactoring. It wasn't giving correct states after refactoring. CellularContext::get_connection_status should be used instead.pull/9898/head
parent
ec73c8a9c7
commit
0905f01438
|
@ -653,20 +653,6 @@ TEST_F(TestAT_CellularNetwork, test_AT_CellularNetwork_attach)
|
|||
cn.attach(&network_cb);
|
||||
}
|
||||
|
||||
TEST_F(TestAT_CellularNetwork, test_get_connection_status)
|
||||
{
|
||||
EventQueue que;
|
||||
FileHandle_stub fh1;
|
||||
ATHandler at(&fh1, que, 0, ",");
|
||||
|
||||
AT_CellularNetwork cn(at);
|
||||
|
||||
ATHandler_stub::nsapi_error_value = NSAPI_ERROR_OK;
|
||||
network_cb_count = 0;
|
||||
cn.attach(&network_cb);
|
||||
EXPECT_TRUE(NSAPI_STATUS_DISCONNECTED == cn.get_connection_status());
|
||||
}
|
||||
|
||||
TEST_F(TestAT_CellularNetwork, test_AT_CellularNetwork_set_receive_period)
|
||||
{
|
||||
EventQueue que;
|
||||
|
|
|
@ -44,11 +44,6 @@ void AT_CellularNetwork::attach(Callback<void(nsapi_event_t, intptr_t)> status_c
|
|||
{
|
||||
}
|
||||
|
||||
nsapi_connection_status_t AT_CellularNetwork::get_connection_status() const
|
||||
{
|
||||
return NSAPI_STATUS_LOCAL_UP;
|
||||
}
|
||||
|
||||
nsapi_error_t AT_CellularNetwork::set_registration_urc(RegistrationType type, bool urc_on)
|
||||
{
|
||||
if (AT_CellularNetwork_stub::set_registration_urc_fail_counter) {
|
||||
|
|
|
@ -327,12 +327,6 @@ public:
|
|||
*/
|
||||
virtual void attach(mbed::Callback<void(nsapi_event_t, intptr_t)> status_cb) = 0;
|
||||
|
||||
/** Get the connection status
|
||||
*
|
||||
* @return The connection status according to ConnectionStatusType
|
||||
*/
|
||||
virtual nsapi_connection_status_t get_connection_status() const = 0;
|
||||
|
||||
/** Read operator names
|
||||
*
|
||||
* @param op_names on successful return contains linked list of operator names.
|
||||
|
|
|
@ -210,11 +210,6 @@ void AT_CellularNetwork::attach(Callback<void(nsapi_event_t, intptr_t)> status_c
|
|||
_connection_status_cb = status_cb;
|
||||
}
|
||||
|
||||
nsapi_connection_status_t AT_CellularNetwork::get_connection_status() const
|
||||
{
|
||||
return _connect_status;
|
||||
}
|
||||
|
||||
nsapi_error_t AT_CellularNetwork::set_registration_urc(RegistrationType type, bool urc_on)
|
||||
{
|
||||
int index = (int)type;
|
||||
|
|
|
@ -63,8 +63,6 @@ public: // CellularNetwork
|
|||
|
||||
virtual void attach(Callback<void(nsapi_event_t, intptr_t)> status_cb);
|
||||
|
||||
virtual nsapi_connection_status_t get_connection_status() const;
|
||||
|
||||
virtual nsapi_error_t set_access_technology(RadioAccessTechnology rat);
|
||||
|
||||
virtual nsapi_error_t scan_plmn(operList_t &operators, int &ops_count);
|
||||
|
|
Loading…
Reference in New Issue