mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-12 23:16:51 +01:00
The purpose of this branch is to share work in process. Change sellect() of UDP to poll() Rewrite UDP6 for DTLS6 Known bug: can't reconnect DTLS Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
23 lines
471 B
Bash
Executable File
23 lines
471 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DEF1="DEF1=${2}"
|
|
DEF2="DEF2=${3}"
|
|
|
|
if [ $1 == "udp" ] ; then
|
|
make SN=UDP $DEF1 $DEF2
|
|
elif [ $1 == "udp6" ] ; then
|
|
make SN=UDP6 $DEF1 $DEF2
|
|
elif [ $1 == "rfcomm" ] ; then
|
|
make SN=RFCOMM $DEF1 $DEF2
|
|
elif [ $1 == "dtls" ] ; then
|
|
make SN=DTLS $DEF1 $DEF2
|
|
elif [ $1 == "dtls6" ] ; then
|
|
make SN=DTLS6 $DEF1 $DEF2
|
|
elif [ $1 == "clean" ] ; then
|
|
make clean
|
|
else
|
|
echo "Usage: build.sh [ udp | udp6 | rfcomm | dtls | dtls6] | clean"
|
|
fi
|
|
|
|
|