Skip to content

Commit

Permalink
Archive: Merge final presentation platform (#172)
Browse files Browse the repository at this point in the history
This PR merges the presentation day frontend, Thanks @AnnsAnns for
reminding me...
  • Loading branch information
AnnsAnns authored Oct 21, 2024
2 parents ecae56c + 76d5894 commit 713d5e2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
4 changes: 2 additions & 2 deletions node/code/dev/border_router/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ SCRIPTPATH=$(dirname "$SCRIPT")

echo $SCRIPTPATH

export RIOTTOOLS="$SCRIPTPATH/../RIOT/dist/tools"
export RIOTTOOLS="$SCRIPTPATH/../../RIOT/dist/tools"

$RIOTTOOLS/usb-cdc-ecm/start_network.sh 2001:db8::/64

ip link add d0 type dummy
ip link set up d0
ip addr add 2001:db8:1::1/64 dev d0
ip addr add 2001:db8:1::1/64 dev d0
13 changes: 13 additions & 0 deletions platform/compose.bordi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#
# Additions which are only relevant on the Raspberry Pi. Use with `-f` option,
# e.g.: `docker compose -f compose.yml -f compose.raspi.yml up`
#

services:
teashan:
ports:
- "[2001:db8:1::1]:5683:5683/udp" # [coap://] CoAP over UDP (with experimental OSCORE)
- "[2001:db8:1::1]:5683:5683/tcp" # [coap+tcp://] CoAP over TCP (experimental)
- "[2001:db8:1::1]:5684:5684/udp" # [coaps://] CoAP over DTLS
- "[2001:db8:1::1]:5684:5684/tcp" # [coaps+tcp://] CoAP over TLS (experimental)
- "[2001:db8:1::1]:5685:5685/udp" # [coap://] CoAP over UDP[::]
7 changes: 6 additions & 1 deletion platform/teashan/client/client-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,15 @@ fi

USE_BOOTSTRAP=true
MODELS_FOLDER=models
ENDPOINT_NAME=teamagochi-java-client-0
DEFAULT_ENDPOINT_ID=java-1
ENDPOINT_NAME="urn:t8i:dev:${1:-$DEFAULT_ENDPOINT_ID}"

shift

if [ "$USE_BOOTSTRAP" = true ]; then
# With bootstrap server
SERVER_URL=coap://localhost:5683
#SERVER_URL=coap://teamagochi:5683
{ sleep 5; echo -e "create 32769\n create 32770\n delete 6\n delete 3303\n delete 3442\n"; } \
| java -jar ./leshan-client-demo.jar \
--models-folder="$MODELS_FOLDER" \
Expand All @@ -40,6 +44,7 @@ if [ "$USE_BOOTSTRAP" = true ]; then
else
# Without bootstrap server
SERVER_URL=coap://localhost:5783
#SERVER_URL=coap://teamagochi:5783
{ sleep 5; echo -e "create 32769\n create 32770\n delete 6\n delete 3303\n delete 3442\n"; } \
| java -jar ./leshan-client-demo.jar \
--models-folder="$MODELS_FOLDER" \
Expand Down

0 comments on commit 713d5e2

Please sign in to comment.