diff --git a/.gitmodules b/.gitmodules
index 157569acfca6d0aa499a00b48909c53414cbd2ca..6500d96a1cb8204c0ed2f83d257aacce06270502 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,8 +1,8 @@
-[submodule "paho.mqtt.c"]
-	path = paho.mqtt.c
-	url = https://github.com/eclipse/paho.mqtt.c.git
-	ignore = dirty
 [submodule "paho.mqtt.cpp"]
 	path = paho.mqtt.cpp
 	url = https://github.com/eclipse/paho.mqtt.cpp.git
-	ignore = dirty
+	ignore = untracked
+[submodule "paho.mqtt.c"]
+	path = paho.mqtt.c
+	url = https://github.com/eclipse/paho.mqtt.c.git
+	ignore = untracked
diff --git a/paho.mqtt.c b/paho.mqtt.c
new file mode 160000
index 0000000000000000000000000000000000000000..7c0735a5f02052c275baddb4f01f1f4dabdfed20
--- /dev/null
+++ b/paho.mqtt.c
@@ -0,0 +1 @@
+Subproject commit 7c0735a5f02052c275baddb4f01f1f4dabdfed20
diff --git a/paho.mqtt.cpp b/paho.mqtt.cpp
new file mode 160000
index 0000000000000000000000000000000000000000..2ff3d155dcd10564f1816675789284b4efd79eb7
--- /dev/null
+++ b/paho.mqtt.cpp
@@ -0,0 +1 @@
+Subproject commit 2ff3d155dcd10564f1816675789284b4efd79eb7