lgq
2025-05-26 0e3ba084acf8e7b880a19ef6107d77a8cab1f83a
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_SN`
#echo "$content"
 
#echo "query device list: $content" >> log
 
/usr/local/script/update_sn  > /dev/null
 
sn=`sqlite3 /work/iot_cfg.db "select id from machine"`
 
echo "{\"code\": \"success\",\"msg\": \"$sn\"}"