#!/bin/sh
# 获取开关量设备列表
echo -en "Content-type: text/html; charset=utf-8\n\n"
#*****************************************************
source ../bin/env.sh

jsoner="../bin/jsoner"
dbFile="/work/iot_cfg.db"

read data

id=`$jsoner $data id`

sqlite3 $dbFile "DELETE FROM ioDevice WHERE ID = $id"
echo {\"code\":\"success\"}


