Browse Source

新增导出接口函数

niujiuru 3 weeks atrás
parent
commit
aafdff754f
1 changed files with 33 additions and 0 deletions
  1. 33 0
      netmgrd/modem.go

+ 33 - 0
netmgrd/modem.go

@@ -58,3 +58,36 @@ func ModemExit() {
 func GetCurModemType() ModemType {
 	return curModemType
 }
+
+func GetIMEI() string {
+	switch curModemType {
+	case Air720U:
+		return modem1.GetIMEI()
+	case EC200U:
+		return modem2.GetIMEI()
+	default:
+		return "未知的调制解调器类型"
+	}
+}
+
+func GetRSSI() string {
+	switch curModemType {
+	case Air720U:
+		return modem1.GetRSSI()
+	case EC200U:
+		return modem2.GetRSSI()
+	default:
+		return "未知的调制解调器类型"
+	}
+}
+
+func GetSimICCID() string {
+	switch curModemType {
+	case Air720U:
+		return modem1.GetSimICCID()
+	case EC200U:
+		return modem2.GetSimICCID()
+	default:
+		return "未知的调制解调器类型"
+	}
+}