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_OK) {
|
||||||
if (httpCode == HTTP_CODE_CREATED) {
|
if (httpCode == HTTP_CODE_CREATED) {
|
||||||
displaySuccess();
|
displaySuccess();
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
displayError();
|
displayError();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
displayError();
|
||||||
}
|
}
|
||||||
|
|
||||||
https.end();
|
https.end();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue