This is an example based on mbed-os cellular APIs that demonstrates a TCP or UDP echo transaction with a public echo server.

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Tue Sep 24 07:01:53 2019 +0100
Parent:
47:ab19d1336686
Child:
49:4defa45f9c7f
Commit message:
Merge pull request #162 from ARMmbed/sim-pin-update

Set SIM PIN with python
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-cellular

Changed in this revision

Jenkinsfile Show annotated file Show diff for this revision Revisions of this file
--- a/Jenkinsfile	Mon Sep 23 10:01:56 2019 +0100
+++ b/Jenkinsfile	Tue Sep 24 07:01:53 2019 +0100
@@ -78,15 +78,23 @@
     stage ("${target}_${compilerLabel}") {
       node ("${compilerLabel}") {
         deleteDir()
+
+        // Checkout scripts
+        dir("mbed-os-systemtest") {
+          git url: "git@github.com:ARMmbed/mbed-os-systemtest.git", branch:"master"
+        }
+
         dir("mbed-os-example-cellular") {
           checkout scm
           def config_file = "mbed_app.json"
 
+          // Sets correct SIM PIN and increases trace level for internal tests
+          execute("python ../mbed-os-systemtest/cellular/configuration-scripts/update-mbed-app-json.py")
+
           // Configurations for different targets
 
           if ("${target}" == "MTB_ADV_WISE_1570") {
             execute("sed -i 's/\"lwip.ppp-enabled\": true,/\"lwip.ppp-enabled\": false,/' ${config_file}")
-            execute("sed -i 's/\"platform.default-serial-baud-rate\": 115200,/\"platform.default-serial-baud-rate\": 9600,/' ${config_file}")
           }
 
           if ("${target}" == "NRF52840_DK") {