       if (i >= sizeof(param) - 1) break;
     }
 
-    uint16_t deviceId_T = atoi(param);
-
-    if (deviceId_T > 0) {
-      eeprom_write_word(&deviceId_E, deviceId_T);
-      deviceId = deviceId_T;
+    uint16_t device_id = atoi(param);
+
+    if (device_id > 0) {
+      eeprom_write_word(&_device_id_E, device_id);
+      _device_id = device_id;
       
       char reply[10];
-      sprintf_P(reply, PSTR("Device ID: %u"), deviceId);
-      gsmSendSMS(sender, reply);
+      sprintf_P(reply, PSTR("Device ID: %u"), _device_id);
+      gsm_send_sms(sender, reply);
 
       Serial.print(F("Device ID updated: "));
-      Serial.println(deviceId);
+      Serial.println(_device_id);
     }
   }
 

      if (i >= sizeof(param) - 1) break;
    }

    uint16_t interval_T = atoi(param);

    if (interval_T > 0) {
      eeprom_write_word(&interval_E, interval_T);
      interval = interval_T * 1000;
      
      char reply[25];
      sprintf_P(reply, PSTR("Interval: %lu ms"), interval);
      gsmSendSMS(sender, reply);

      Serial.print(F("Interval updated: "));
      Serial.println(interval);
    }
  }



  for (;;) {
    Serial.println(F("Setting up network... "));
    uint8_t ret = gsm_setup();

    if (ret == 0) {
      Serial.println(F("OK"));
