GNSS

Dependents:   ublox-at-cellular-interface-ext

Fork of ublox-at-cellular-interface by u-blox

Revision:
25:34c79d68667e
Parent:
24:c6592eec499a
Parent:
22:7013521e75e7
Child:
26:a16a65a4a06c
--- a/UbloxATCellularInterface.cpp	Mon Feb 18 11:42:35 2019 +0500
+++ b/UbloxATCellularInterface.cpp	Mon Feb 18 11:43:58 2019 +0500
@@ -1202,7 +1202,8 @@
 UbloxATCellularInterface::UbloxATCellularInterface(PinName tx,
                                                    PinName rx,
                                                    int baud,
-                                                   bool debug_on)
+                                                   bool debug_on,
+                                                   osPriority priority)
 {
     _sim_pin_check_change_pending = false;
     _sim_pin_check_change_pending_enabled_value = false;
@@ -1233,6 +1234,7 @@
 
     // Start the event handler thread for Rx data
     event_thread.start(callback(this, &UbloxATCellularInterface::handle_event));
+    event_thread.set_priority(priority);
 
     // URC handlers for sockets
     _at->oob("+UUSORD", callback(this, &UbloxATCellularInterface::UUSORD_URC));
@@ -1373,7 +1375,7 @@
     }
 
     // Attempt to establish a connection
-#ifdef TARGET_UBLOX_C030_R410M
+#ifdef TARGET_UBLOX_C030_R41XM
     if (registered) {
 #else
     if (registered && connect_modem_stack()) {
@@ -1388,8 +1390,11 @@
 nsapi_error_t UbloxATCellularInterface::disconnect()
 {
     nsapi_error_t nsapi_error = NSAPI_ERROR_DEVICE_ERROR;
-
+#ifdef TARGET_UBLOX_C030_R41XM
+    if (nwk_deregistration()) {
+#else
     if (disconnect_modem_stack() && nwk_deregistration()) {
+#endif
         nsapi_error = NSAPI_ERROR_OK;
     }
 
@@ -1507,5 +1512,9 @@
     _connection_status_cb = cb;
 }
 
+void UbloxATCellularInterface::set_plmn(const char *plmn) {
+
+}
+
 // End of file