summaryrefslogtreecommitdiff
path: root/src/AccessoryCards/LoraCard2G4.cpp
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2022-03-03 14:44:44 -0600
committerJohn Klug <john.klug@multitech.com>2022-03-03 14:53:34 -0600
commit54f86b83b60192f8b33dad90b33b47246165ac51 (patch)
treec7183f8ff02d3090989530740d36164db3630620 /src/AccessoryCards/LoraCard2G4.cpp
parent964e90992d6ac73cf287722a3dc136dda86c3ac2 (diff)
downloadmts-io-sysfs-54f86b83b60192f8b33dad90b33b47246165ac51.tar.gz
mts-io-sysfs-54f86b83b60192f8b33dad90b33b47246165ac51.tar.bz2
mts-io-sysfs-54f86b83b60192f8b33dad90b33b47246165ac51.zip
LoRa updates with MTAC-003
Diffstat (limited to 'src/AccessoryCards/LoraCard2G4.cpp')
-rw-r--r--src/AccessoryCards/LoraCard2G4.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/AccessoryCards/LoraCard2G4.cpp b/src/AccessoryCards/LoraCard2G4.cpp
new file mode 100644
index 0000000..10691ce
--- /dev/null
+++ b/src/AccessoryCards/LoraCard2G4.cpp
@@ -0,0 +1,32 @@
+/**********************************************************************
+ * COPYRIGHT 2020 MULTI-TECH SYSTEMS, INC.
+ *
+ * ALL RIGHTS RESERVED BY AND FOR THE EXCLUSIVE BENEFIT OF
+ * MULTI-TECH SYSTEMS, INC.
+ *
+ * MULTI-TECH SYSTEMS, INC. - CONFIDENTIAL AND PROPRIETARY
+ * INFORMATION AND/OR TRADE SECRET.
+ *
+ * NOTICE: ALL CODE, PROGRAM, INFORMATION, SCRIPT, INSTRUCTION,
+ * DATA, AND COMMENT HEREIN IS AND SHALL REMAIN THE CONFIDENTIAL
+ * INFORMATION AND PROPERTY OF MULTI-TECH SYSTEMS, INC.
+ * USE AND DISCLOSURE THEREOF, EXCEPT AS STRICTLY AUTHORIZED IN A
+ * WRITTEN AGREEMENT SIGNED BY MULTI-TECH SYSTEMS, INC. IS PROHIBITED.
+ *
+ ***********************************************************************/
+
+#include "Device.h"
+
+Device::Lora2G4Card::Lora2G4Card(Device &d)
+ : LoraCard(d, std::regex("(MTAC-LORA-2G4)")) {}
+
+void Device::Lora2G4Card::AddToDeviceInfo(const std::string Port,
+ const std::string ProductID) {
+
+ LoraCard::AddToDeviceInfo(Port, ProductID);
+ std::string ttyPath = "/dev/ttyACM0";
+ device.accessoryCard.AddMember(
+ "ttyPath",
+ rapidjson::Value().SetString(ttyPath.c_str(), device.acAlloc),
+ device.acAlloc);
+} \ No newline at end of file