![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
This is a simple mbed client example demonstrating, registration of a device with mbed Device Connector and reading and writing values as well as deregistering on different Network Interfaces including Ethernet, WiFi, 6LoWPAN ND and Thread respectively.
Fork of mbed-os-example-client by
build_all.sh@63:c73f78fd7982, 2017-02-15 (annotated)
- Committer:
- mbed_official
- Date:
- Wed Feb 15 08:00:11 2017 +0000
- Revision:
- 63:c73f78fd7982
- Parent:
- 45:b150e0aa009c
Integrate easy-connect, fix serial, fix warning (#176)
Integrate easy-connect
- we can remove all the external RF-drivers from main folder
- get easy-connect into use
- remove all the complicated network stuff
Fix serial - we don't need raw serial and we don't need to initialize it
if we set the right stuff to mbed_app.json (added). Plain printf() works
and it even does type checking now. (Points to Kevin Bracey on this).
Start the thread in a non-deprecated way using callback to remove one compiler
warning (again, points to Kevin Bracey).
Easy-connect ESP8266 TX/RX pins in different defines.
mbed-os-example-client has NEVER used 2 sets of WiFi pins, so need
to add a define to hack them into one set - otherwise it will not compile.
The cp command would not have worked if one would have changed
the compiler. Add UBLOX ODIN ETH config to be built as well,
now that we have figured out how to make the the ethernet work
on it.
Change also the WIFI to work with easy-connect. Easy-connect has 2 separate WIFIs,
so you have to choose between ESP8266 vs. ODIN. Thus, 2 config files are also needed,
one for ESP8266 and one for ODIN.
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-client
Who changed what in which revision?
User | Revision | Line number | New 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 | 63:c73f78fd7982 | 7 | echo Ethernet v4 |
mbed_official | 45:b150e0aa009c | 8 | cp configs/eth_v4.json ./mbed_app.json |
mbed_official | 45:b150e0aa009c | 9 | cp configs/eth-wifi-mbedignore ./.mbedignore |
mbed_official | 45:b150e0aa009c | 10 | mbed compile -m K64F -t $TOOL |
mbed_official | 63:c73f78fd7982 | 11 | cp BUILD/K64F/$TOOL/mbed-os-example-client.bin k64f-$TOOL-eth-v4.bin |
mbed_official | 45:b150e0aa009c | 12 | mbed compile -m NUCLEO_F439ZI -t $TOOL |
mbed_official | 63:c73f78fd7982 | 13 | cp ./BUILD/NUCLEO_F439ZI/$TOOL/mbed-os-example-client.bin f439zi-$TOOL-eth-v4.bin |
mbed_official | 63:c73f78fd7982 | 14 | mbed compile -m UBLOX_EVK_ODIN_W2 -t $TOOL |
mbed_official | 63:c73f78fd7982 | 15 | cp ./BUILD/UBLOX_EVK_ODIN_W2/$TOOL/mbed-os-example-client.bin ublox-odin-$TOOL-eth-v4.bin |
mbed_official | 45:b150e0aa009c | 16 | |
mbed_official | 63:c73f78fd7982 | 17 | echo Ethernet v6 |
mbed_official | 45:b150e0aa009c | 18 | cp configs/eth_v6.json ./mbed_app.json |
mbed_official | 45:b150e0aa009c | 19 | cp configs/eth-wifi-mbedignore ./.mbedignore |
mbed_official | 45:b150e0aa009c | 20 | mbed compile -m K64F -t $TOOL |
mbed_official | 63:c73f78fd7982 | 21 | cp BUILD/K64F/$TOOL/mbed-os-example-client.bin k64f-$TOOL-eth-v6.bin |
mbed_official | 45:b150e0aa009c | 22 | mbed compile -m NUCLEO_F439ZI -t $TOOL |
mbed_official | 63:c73f78fd7982 | 23 | cp ./BUILD/NUCLEO_F439ZI/$TOOL/mbed-os-example-client.bin f439zi-$TOOL-eth-v4.bin |
mbed_official | 63:c73f78fd7982 | 24 | mbed compile -m UBLOX_EVK_ODIN_W2 -t $TOOL |
mbed_official | 63:c73f78fd7982 | 25 | cp ./BUILD/UBLOX_EVK_ODIN_W2/$TOOL/mbed-os-example-client.bin ublox-odin-$TOOL-eth-v6.bin |
mbed_official | 45:b150e0aa009c | 26 | |
mbed_official | 63:c73f78fd7982 | 27 | echo WIFI - ESP8266 |
mbed_official | 63:c73f78fd7982 | 28 | cp configs/wifi_esp8266_v4.json ./mbed_app.json |
mbed_official | 45:b150e0aa009c | 29 | cp configs/eth-wifi-mbedignore ./.mbedignore |
mbed_official | 45:b150e0aa009c | 30 | mbed compile -m K64F -t $TOOL |
mbed_official | 63:c73f78fd7982 | 31 | cp BUILD/K64F/$TOOL/mbed-os-example-client.bin k64f-$TOOL-esp-wifi-v4.bin |
mbed_official | 63:c73f78fd7982 | 32 | mbed compile -m NUCLEO_F439ZI -t $TOOL |
mbed_official | 63:c73f78fd7982 | 33 | cp ./BUILD/NUCLEO_F439ZI/$TOOL/mbed-os-example-client.bin f439zi-$TOOL-esp-wifi-v4.bin |
mbed_official | 63:c73f78fd7982 | 34 | |
mbed_official | 63:c73f78fd7982 | 35 | echo WIFI - ODIN for UBLOX_EVK_ODIN_W2 |
mbed_official | 63:c73f78fd7982 | 36 | cp configs/wifi_odin_v4.json ./mbed_app.json |
mbed_official | 63:c73f78fd7982 | 37 | cp configs/eth-wifi-mbedignore ./.mbedignore |
mbed_official | 45:b150e0aa009c | 38 | mbed compile -m UBLOX_EVK_ODIN_W2 -t $TOOL |
mbed_official | 63:c73f78fd7982 | 39 | cp ./BUILD/UBLOX_EVK_ODIN_W2/$TOOL/mbed-os-example-client.bin ublox-odin-$TOOL-wifi-v4.bin |
mbed_official | 45:b150e0aa009c | 40 | |
mbed_official | 63:c73f78fd7982 | 41 | echo 6-Lowpan builds |
mbed_official | 45:b150e0aa009c | 42 | cp configs/mesh_6lowpan.json ./mbed_app.json |
mbed_official | 45:b150e0aa009c | 43 | cp configs/mesh-mbedignore ./.mbedignore |
mbed_official | 45:b150e0aa009c | 44 | mbed compile -m K64F -t $TOOL |
mbed_official | 63:c73f78fd7982 | 45 | cp BUILD/K64F/$TOOL/mbed-os-example-client.bin k64f-$TOOL-6lowpan.bin |
mbed_official | 45:b150e0aa009c | 46 | mbed compile -m NUCLEO_F439ZI -t $TOOL |
mbed_official | 63:c73f78fd7982 | 47 | cp ./BUILD/NUCLEO_F439ZI/$TOOL/mbed-os-example-client.bin f439zi-$TOOL-6lowpan.bin |
mbed_official | 45:b150e0aa009c | 48 | |
mbed_official | 63:c73f78fd7982 | 49 | echo Thread builds |
mbed_official | 45:b150e0aa009c | 50 | cp configs/mesh_thread.json ./mbed_app.json |
mbed_official | 45:b150e0aa009c | 51 | cp configs/mesh-mbedignore ./.mbedignore |
mbed_official | 45:b150e0aa009c | 52 | mbed compile -m K64F -t $TOOL |
mbed_official | 63:c73f78fd7982 | 53 | cp BUILD/K64F/$TOOL/mbed-os-example-client.bin k64f-$TOOL-Thread.bin |
mbed_official | 45:b150e0aa009c | 54 | mbed compile -m NUCLEO_F439ZI -t $TOOL |
mbed_official | 63:c73f78fd7982 | 55 | cp ./BUILD/NUCLEO_F439ZI/$TOOL/mbed-os-example-client.bin f439zi-$TOOL-Thread.bin |