def accState(roomNumber, accNumber):
if roomNumber == 0:
if GPIO.input(outPin[roomNumber][accNumber]) is 1:
return 'containerOff'
else:
return 'containerOn'
elif roomNumber > 0:
#get the state of other accesories in other rooms
return 'containerOff'
评论列表
文章目录