Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Change socket mode to UDP for mesh in Jenkinsfile #133

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ def buildStep(target, compilerLabel, toolchain, configName, connectiontype) {
execute ("sed -i 's/\"mbed-mesh-api.6lowpan-nd-channel\": 12/\"mbed-mesh-api.6lowpan-nd-channel\": 18/' mbed_app.json")
}

if ("${configName}" == "6lp" || "${configName}" == "thd") {
// Change socket mode to UDP
execute ("sed -i 's/M2MInterface::BindingMode SOCKET_MODE = M2MInterface::TCP/M2MInterface::BindingMode SOCKET_MODE = M2MInterface::UDP/' simpleclient.h")
}

if ("${connectiontype}" == "MCR20") {
// Replace default rf shield
execute ("sed -i 's/\"value\": \"ATMEL\"/\"value\": \"MCR20\"/' mbed_app.json")
Expand Down