diff --git a/platformio.ini b/platformio.ini index 229b3da..549057e 100644 --- a/platformio.ini +++ b/platformio.ini @@ -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 \ No newline at end of file diff --git a/python/example-processor.py b/python/example-processor.py index f875a2b..a02dfff 100644 --- a/python/example-processor.py +++ b/python/example-processor.py @@ -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'))