【问题标题】:SimpleMFRC522 RFID is not working when hit on route againSimpleMFRC522 RFID 再次击中路线时不工作
【发布时间】:2022-06-17 18:55:07
【问题描述】:

点击路由时,http://localhost:5000/start-sys 第二次 mfrc522 RFID 阅读器未从 RFID 标签读取

@app.route('/start-sys',methods=["POST", "GET"])
def startSys():
    status = Thread(target=start_system(),name="start-app")
    status.setDaemon(True)
    status.start()
    return redirect(url_for('startSys'))
def start_system():
    reader = SimpleMFRC522()
    while True:
        id = reader.read_id()
        print(id)

第一次系统在命中其他点时正常工作,但代码仍在后台工作 但是当点击“/start-sys”时,RFIDTag 不会扫描

【问题讨论】:

  • 请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。

标签: python flask routes rfid mfrc522


猜你喜欢
  • 2016-05-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-08-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多