test iwlist for v2

This commit is contained in:
Alfonso Gamboa 2022-05-23 20:28:53 -07:00
parent 5232be3167
commit 71eb6d795b
2 changed files with 12 additions and 2 deletions

View File

@ -221,14 +221,12 @@ RTSP_PORT="8554"
RTSP_HI_RES_ENABLED="true" RTSP_HI_RES_ENABLED="true"
RTSP_HI_RES_ENABLE_AUDIO="true" RTSP_HI_RES_ENABLE_AUDIO="true"
RTSP_HI_RES_FPS="20"
RTSP_HI_RES_MAX_BITRATE="2048" RTSP_HI_RES_MAX_BITRATE="2048"
RTSP_HI_RES_TARGET_BITRATE="1024" RTSP_HI_RES_TARGET_BITRATE="1024"
RTSP_HI_RES_ENC_PARAMETER="2" RTSP_HI_RES_ENC_PARAMETER="2"
RTSP_LOW_RES_ENABLED="false" RTSP_LOW_RES_ENABLED="false"
RTSP_LOW_RES_ENABLE_AUDIO="false" RTSP_LOW_RES_ENABLE_AUDIO="false"
RTSP_LOW_RES_FPS=""
RTSP_LOW_RES_MAX_BITRATE="" RTSP_LOW_RES_MAX_BITRATE=""
RTSP_LOW_RES_TARGET_BITRATE="" RTSP_LOW_RES_TARGET_BITRATE=""
RTSP_LOW_RES_ENC_PARAMETER="" RTSP_LOW_RES_ENC_PARAMETER=""

View File

@ -0,0 +1,12 @@
#!/bin/sh
#On the V2, for some reason iCamera runs "sh -c iwlist wlan0 scan | grep 'ESSID:"<your wifi ssid>"' every 5 seconds.
#Let's fake the output to reduce load
ssid=$(cat /tmp/wpa_supplicant.conf | grep "ssid=\"" | cut -d'"' -f 2)
echo -e " ESSID:\""$ssid"\"\n"
sleep 30
exit 0