fix for bogus reader data
This commit is contained in:
parent
ed023a8494
commit
93dc75f66a
2 changed files with 5 additions and 4 deletions
|
@ -19,7 +19,4 @@ build_flags = -DBOARD1 -DRELAY1
|
|||
platform = espressif32
|
||||
framework = arduino
|
||||
board = nodemcu-32s
|
||||
build_flags = -DBOARD2 -DBUZZER -DRELAY1 -DUSB_SERIAL
|
||||
|
||||
|
||||
|
||||
build_flags = -DBOARD2 -DBUZZER -DRELAY1 -DUSB_SERIAL
|
|
@ -14,6 +14,10 @@ def send_http_post(prefix,value):
|
|||
url = 'https://your-api-endpoint.com' # Replace with your actual API endpoint
|
||||
data_to_post = {'data': value}
|
||||
response = requests.post(url, data=data_to_post)
|
||||
|
||||
if value is "0:0":
|
||||
return
|
||||
|
||||
if response.status_code is 200:
|
||||
print(f"Sent FULL_CARD_ID: {value} via HTTP POST successfully")
|
||||
ser.write("unlock".encode('utf-8'))
|
||||
|
|
Loading…
Reference in a new issue