Explorar o código

test iwlist for v2

Alfonso Gamboa %!s(int64=3) %!d(string=hai) anos
pai
achega
71eb6d795b
Modificáronse 2 ficheiros con 12 adicións e 2 borrados
  1. 0 2
      README.md
  2. 12 0
      SD_ROOT/wz_mini/bin/iwlist

+ 0 - 2
README.md

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

+ 12 - 0
SD_ROOT/wz_mini/bin/iwlist

@@ -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