wuwei
2025-06-13 e8c9c0ca7e6c307243c158fd529c59c5a3717f2f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# 查询设备数据
#
echo -en "Content-type: text/html; charset=utf-8\n\n"
#echo ""
source ../bin/env.sh
 
db="../bin/db"
jsoner="../bin/jsoner"
#*********************************************************
 
read data
 
$db save_addr "$data"
 
if [ $? -eq 0 ]
then
    echo "{\"code\": \"success\"}" 
else
    echo "{\"code\": \"error\"}" 
fi
        
#echo "$data" > /tmp/device_addr