a simple mbed client example

Fork of mbed-os-example-client by mbed-os-examples

Committer:
mbed_official
Date:
Tue Dec 13 13:45:11 2016 +0000
Revision:
45:b150e0aa009c
configs/*.json based configurations (#140)

* configs/*.json based configurations

Per Marcelo Salazar's proposal add configuration examples to a configs-folder.
By default the repo does not anymore have an mbed_app.json at all, but one should
copy one of the example configs, potentially modify it and use it.

Add mbedignore files to avoid the compilation problems.

Reference:
https://github.com/ARMmbed/mbed-os-example-client/issues/137

* Clarify connection types per bearer

Mesh-networking ONLY supports UDP, others support both. Table to
illustrate UPD/TCP modes per network bearer.

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-client

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 45:b150e0aa009c 1 #!/bin/bash
mbed_official 45:b150e0aa009c 2 #
mbed_official 45:b150e0aa009c 3 set -e
mbed_official 45:b150e0aa009c 4 TOOL=GCC_ARM
mbed_official 45:b150e0aa009c 5
mbed_official 45:b150e0aa009c 6 echo Compiling with $TOOL
mbed_official 45:b150e0aa009c 7 cp configs/eth_v4.json ./mbed_app.json
mbed_official 45:b150e0aa009c 8 cp configs/eth-wifi-mbedignore ./.mbedignore
mbed_official 45:b150e0aa009c 9 mbed compile -m K64F -t $TOOL
mbed_official 45:b150e0aa009c 10 cp BUILD/K64F/GCC_ARM/mbed-os-example-client.bin k64f-$TOOL-eth-v4.bin
mbed_official 45:b150e0aa009c 11 mbed compile -m NUCLEO_F439ZI -t $TOOL
mbed_official 45:b150e0aa009c 12 cp ./BUILD/NUCLEO_F439ZI/GCC_ARM/mbed-os-example-client.bin f439zi-$TOOL-eth-v4.bin
mbed_official 45:b150e0aa009c 13
mbed_official 45:b150e0aa009c 14 cp configs/eth_v6.json ./mbed_app.json
mbed_official 45:b150e0aa009c 15 cp configs/eth-wifi-mbedignore ./.mbedignore
mbed_official 45:b150e0aa009c 16 mbed compile -m K64F -t $TOOL
mbed_official 45:b150e0aa009c 17 cp BUILD/K64F/GCC_ARM/mbed-os-example-client.bin k64f-$TOOL-eth-v6.bin
mbed_official 45:b150e0aa009c 18 mbed compile -m NUCLEO_F439ZI -t $TOOL
mbed_official 45:b150e0aa009c 19 cp ./BUILD/NUCLEO_F439ZI/GCC_ARM/mbed-os-example-client.bin f439zi-$TOOL-eth-v4.bin
mbed_official 45:b150e0aa009c 20
mbed_official 45:b150e0aa009c 21 cp configs/wifi_v4.json ./mbed_app.json
mbed_official 45:b150e0aa009c 22 cp configs/eth-wifi-mbedignore ./.mbedignore
mbed_official 45:b150e0aa009c 23 mbed compile -m K64F -t $TOOL
mbed_official 45:b150e0aa009c 24 cp BUILD/K64F/GCC_ARM/mbed-os-example-client.bin k64f-$TOOL-wifi-v4.bin
mbed_official 45:b150e0aa009c 25 mbed compile -m UBLOX_EVK_ODIN_W2 -t $TOOL
mbed_official 45:b150e0aa009c 26 cp ./BUILD/UBLOX_EVK_ODIN_W2/GCC_ARM/mbed-os-example-client.bin ublox-odin-$TOOL-wifi-v4.bin
mbed_official 45:b150e0aa009c 27
mbed_official 45:b150e0aa009c 28 cp configs/mesh_6lowpan.json ./mbed_app.json
mbed_official 45:b150e0aa009c 29 cp configs/mesh-mbedignore ./.mbedignore
mbed_official 45:b150e0aa009c 30 mbed compile -m K64F -t $TOOL
mbed_official 45:b150e0aa009c 31 cp BUILD/K64F/GCC_ARM/mbed-os-example-client.bin k64f-$TOOL-6lowpan.bin
mbed_official 45:b150e0aa009c 32 mbed compile -m NUCLEO_F439ZI -t $TOOL
mbed_official 45:b150e0aa009c 33 cp ./BUILD/NUCLEO_F439ZI/GCC_ARM/mbed-os-example-client.bin f439zi-$TOOL-6lowpan.bin
mbed_official 45:b150e0aa009c 34
mbed_official 45:b150e0aa009c 35 cp configs/mesh_thread.json ./mbed_app.json
mbed_official 45:b150e0aa009c 36 cp configs/mesh-mbedignore ./.mbedignore
mbed_official 45:b150e0aa009c 37 mbed compile -m K64F -t $TOOL
mbed_official 45:b150e0aa009c 38 cp BUILD/K64F/GCC_ARM/mbed-os-example-client.bin k64f-$TOOL-Thread.bin
mbed_official 45:b150e0aa009c 39 mbed compile -m NUCLEO_F439ZI -t $TOOL
mbed_official 45:b150e0aa009c 40 cp ./BUILD/NUCLEO_F439ZI/GCC_ARM/mbed-os-example-client.bin f439zi-$TOOL-Thread.bin