File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
features/cellular/framework/targets/UBLOX/AT Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,13 @@ void UBLOX_AT_CellularContext::do_connect()
56
56
#ifndef TARGET_UBLOX_C030_R41XM
57
57
_cb_data.error = define_context ();
58
58
#elif TARGET_UBLOX_C030_R410M
59
+ _at.cmd_start_stop (" +CGACT" , " ?" );
60
+ _at.resp_start (" +CGACT:" );
61
+ _cid = _at.read_int ();
62
+ _at.skip_param (1 );
63
+ _at.resp_stop ();
64
+
65
+ _is_connected = true ;
59
66
_is_context_active = true ;
60
67
_is_context_activated = true ;
61
68
_cb_data.error = NSAPI_ERROR_OK;
@@ -74,11 +81,19 @@ void UBLOX_AT_CellularContext::do_connect()
74
81
_at.restore_at_timeout ();
75
82
if (_is_context_activated == true ) {
76
83
_cid = 1 ;
84
+ _is_connected = true ;
77
85
_is_context_active = true ;
78
86
_cb_data.error = NSAPI_ERROR_OK;
79
87
}
80
88
}
81
89
} else if (rat == CellularNetwork::RadioAccessTechnology::RAT_CATM1 || rat == CellularNetwork::RadioAccessTechnology::RAT_NB1) {
90
+ _at.cmd_start_stop (" +CGACT" , " ?" );
91
+ _at.resp_start (" +CGACT:" );
92
+ _cid = _at.read_int ();
93
+ _at.skip_param (1 );
94
+ _at.resp_stop ();
95
+
96
+ _is_connected = true ;
82
97
_is_context_active = true ;
83
98
_is_context_activated = true ;
84
99
_cb_data.error = NSAPI_ERROR_OK;
You can’t perform that action at this time.
0 commit comments