diff --git a/SD_ROOT/wz_mini/etc/network.d/S12remoteaccessory b/SD_ROOT/wz_mini/etc/network.d/S12remoteaccessory index e106c53..5d8ab4e 100644 --- a/SD_ROOT/wz_mini/etc/network.d/S12remoteaccessory +++ b/SD_ROOT/wz_mini/etc/network.d/S12remoteaccessory @@ -14,7 +14,7 @@ remote() { echo "#####$(basename "$0")#####" if [[ "$REMOTE_SPOTLIGHT" == "true" ]]; then - /opt/wz_mini/bin/socat pty,link=/dev/ttyUSB0,raw tcp:"$REMOTE_SPOTLIGHT_HOST":9000 & + /opt/wz_mini/bin/ser2net -c /opt/wz_mini/etc/ser2net.yaml echo "Remote accessory support enabled" else echo "Remote accessory support disabled" @@ -26,7 +26,7 @@ case "$1" in remote & ;; stop) - pkill socat + pkill ser2net ;; *) echo "Usage: $0 {start}" diff --git a/SD_ROOT/wz_mini/etc/wz_mini.conf.dist b/SD_ROOT/wz_mini/etc/wz_mini.conf.dist index a6b98ec..4f571c1 100644 --- a/SD_ROOT/wz_mini/etc/wz_mini.conf.dist +++ b/SD_ROOT/wz_mini/etc/wz_mini.conf.dist @@ -49,7 +49,6 @@ BONDING_FAIL_OVER_MAC="0" #####ACCESSORIES##### REMOTE_SPOTLIGHT="false" -REMOTE_SPOTLIGHT_HOST="0.0.0.0" #####VIDEO STREAM##### RTSP_LOGIN="admin" diff --git a/SD_ROOT/wz_mini/wz_mini.conf b/SD_ROOT/wz_mini/wz_mini.conf index a6b98ec..4f571c1 100644 --- a/SD_ROOT/wz_mini/wz_mini.conf +++ b/SD_ROOT/wz_mini/wz_mini.conf @@ -49,7 +49,6 @@ BONDING_FAIL_OVER_MAC="0" #####ACCESSORIES##### REMOTE_SPOTLIGHT="false" -REMOTE_SPOTLIGHT_HOST="0.0.0.0" #####VIDEO STREAM##### RTSP_LOGIN="admin"