display success only when card read
This commit is contained in:
parent
dd86fbf687
commit
832f3d883c
1 changed files with 2 additions and 2 deletions
|
|
@ -74,7 +74,6 @@ void send_uid(char reader_uid[]) {
|
|||
else {
|
||||
//if you get here you have connected to the WiFi
|
||||
Serial.println("connected...yeey :)");
|
||||
displaySuccess();
|
||||
}
|
||||
auto client = std::make_unique<BearSSL::WiFiClientSecure>();
|
||||
|
||||
|
|
@ -92,11 +91,12 @@ void send_uid(char reader_uid[]) {
|
|||
|
||||
if (httpCode > 0) {
|
||||
if (httpCode == HTTP_CODE_CREATED) {
|
||||
displaySuccess();
|
||||
} else {
|
||||
Serial.println("Remote error while sending uid");
|
||||
displayError();
|
||||
}
|
||||
} else {
|
||||
Serial.print("Remote error while sending uid");
|
||||
displayError();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue