display error if http error
This commit is contained in:
parent
212eaca10d
commit
36e148744e
1 changed files with 3 additions and 0 deletions
|
|
@ -105,9 +105,12 @@ void loop() {
|
|||
// if (httpCode == HTTP_CODE_OK) {
|
||||
if (httpCode == HTTP_CODE_CREATED) {
|
||||
displaySuccess();
|
||||
return;
|
||||
} else {
|
||||
displayError();
|
||||
}
|
||||
} else {
|
||||
displayError();
|
||||
}
|
||||
|
||||
https.end();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue