George Djabarov / Mbed OS mbed-os-example-mesh-minimal
Revision:
51:de6c96c52689
Parent:
50:5d4045379c2f
Child:
52:27692043e962
--- a/Jenkinsfile	Fri Mar 10 12:00:13 2017 +0000
+++ b/Jenkinsfile	Fri Mar 10 19:15:11 2017 +0000
@@ -124,18 +124,22 @@
           }
 
           if ("${meshInterface}" == "thd") {
-
             config_file = "./configs/mesh_thread.json"
-            // Activate traces
-            execute("sed -i 's/\"mbed-trace.enable\": false/\"mbed-trace.enable\": true/' ${config_file}")
+            // Use systest Thread Border Router for testing (CH=18, PANID=BAAB)
+            execute("sed -i '/mbed-mesh-api.thread-device-type\":/a \"mbed-mesh-api.thread-config-channel\": 18,' ${config_file}")
+            execute("sed -i '/mbed-mesh-api.thread-device-type\":/a \"mbed-mesh-api.thread-config-panid\": \"0xBAAB\",' ${config_file}")
           }
 
           if ("${meshInterface}" == "6lp") {
             config_file = "./configs/mesh_6lowpan.json"
-            // Activate traces
-            execute("sed -i 's/\"mbed-trace.enable\": false/\"mbed-trace.enable\": true/' ${config_file}")
+            // Use systest 6LoWPAN Border Router for testing (CH=17, PANID=ABBA)
+            execute("sed -i 's/\"mbed-mesh-api.6lowpan-nd-channel\": 12/\"mbed-mesh-api.6lowpan-nd-channel\": 17/' ${config_file}")
+            execute("sed -i 's/\"mbed-mesh-api.6lowpan-nd-panid-filter\": \"0xffff\"/\"mbed-mesh-api.6lowpan-nd-panid-filter\": \"0xABBA\"/' ${config_file}")
           }
 
+          // Activate traces
+          execute("sed -i 's/\"mbed-trace.enable\": false/\"mbed-trace.enable\": true/' ${config_file}")
+
           // Set mbed-os to revision received as parameter
           execute ("mbed deploy --protocol ssh")
           dir ("mbed-os") {