Cellular library for MTS Socket Modem Arduino Shield devices from Multi-Tech Systems

Dependents:   mtsas mtsas mtsas mtsas

Files at this revision

API Documentation at this revision

Comitter:
mfiore
Date:
Wed Sep 09 18:12:52 2015 +0000
Parent:
79:da70f86996a1
Child:
81:2e12915f892e
Commit message:
add function to get radio type enum, rename original to getRadioTypeString

Changed in this revision

Cellular/Cellular.cpp Show annotated file Show diff for this revision Revisions of this file
Cellular/Cellular.h Show annotated file Show diff for this revision Revisions of this file
--- a/Cellular/Cellular.cpp	Wed Sep 09 11:59:17 2015 -0500
+++ b/Cellular/Cellular.cpp	Wed Sep 09 18:12:52 2015 +0000
@@ -425,7 +425,12 @@
     return equipmentIdentifier;
 }
 
-std::string Cellular::getRadioType()
+int Cellular::getRadioType()
+{
+    return type;
+}
+
+std::string Cellular::getRadioTypeString()
 {
     return getRadioNames(type);
 }
--- a/Cellular/Cellular.h	Wed Sep 09 11:59:17 2015 -0500
+++ b/Cellular/Cellular.h	Wed Sep 09 18:12:52 2015 +0000
@@ -494,10 +494,15 @@
     */
     std::string getEquipmentIdentifier();
 
+    /** Get radio type
+    * @returns the radio type (MTSMC-H5, etc)
+    */
+    int getRadioType();
+
     /** Get string representation of radio type
     * @returns string containing the radio type (MTSMC-H5, etc)
     */
-    std::string getRadioType();
+    std::string getRadioTypeString();
 
     /** Enables GPS.
     * @returns true if GPS is enabled, false if GPS is not supported.