wuwei
2025-05-30 9084e3393212d75a758c8e6a28c665ddcc5fc03b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# 查询-串口设备
echo -en "Content-type: text/html; charset=utf-8\n\n"
#*****************************************************
source ../bin/env.sh
db="../bin/db"
 
 
content=`$db query_ext_serial `
if [ $? -eq 0 ]
then
    echo "$content"
else
    echo "[]"
fi
 
#echo "query db port: $content" > log