“智能植物管家系统”的智能终端采用micro:bit开发板,使用micro:bit 软件采集土壤温湿度数据,部分代码如下:
#导入相关库,代码略
@app.route("/input" , methods=[' POST’,’ GET'])
def add_data ():
#代码略
Uart. init(baudrate=115200 ,bits=8 , parity=None , stop=1, tx=pin2 ,rx=pin1)
#网络连接
while Obloq.connectWifi("zh", "pwd",10000)!=True
display. show("正在连接……")
display.scroll( Obloq.ifconfig())
Obloq.httpSet("192.168.2.13", "8080")
#采集传感器数据,并设置传输模式
while True :
temp=pin0.read_analog()
errno, resp =Obloq.get ("input ? id= 1&val = "+str( temp),10000)
if errno ==200 :
display.scroll(resp)
else :
display.scroll(str( errno))
sleep (1000*10)
根据材料回答下列问题:
(1)智能终端访问服务器的IP地址为
(2)综合上述代码,请你判断该系统编写服务器时,路由采用
(3)若某时刻温度数值为25,则输入数据时使用的URL是
A.http://192.168.2.13/inputval=25
B.http://192.168.2.13:8080/inputid=25
C.http://192.168.2.13:8080/id=1&val=25
D.http://192.168.2.13:8080/input?id =1&val=25
(4)若插入记录代码为cur.execute("insert into sensorlog(sensorid,sensorvalue, updatetime) values(%d, %f, "%s")"%(1,30.0,“00:00:00”)),则该系统访问的数据表是

同类型试题

y = sin x, x∈R, y∈[–1,1],周期为2π,函数图像以 x = (π/2) + kπ 为对称轴
y = arcsin x, x∈[–1,1], y∈[–π/2,π/2]
sin x = 0 ←→ arcsin x = 0
sin x = 1/2 ←→ arcsin x = π/6
sin x = √2/2 ←→ arcsin x = π/4
sin x = 1 ←→ arcsin x = π/2


y = sin x, x∈R, y∈[–1,1],周期为2π,函数图像以 x = (π/2) + kπ 为对称轴
y = arcsin x, x∈[–1,1], y∈[–π/2,π/2]
sin x = 0 ←→ arcsin x = 0
sin x = 1/2 ←→ arcsin x = π/6
sin x = √2/2 ←→ arcsin x = π/4
sin x = 1 ←→ arcsin x = π/2

