diff --git a/shelly/syncscript.js b/shelly/syncscript.js index 329478b..6d21f84 100644 --- a/shelly/syncscript.js +++ b/shelly/syncscript.js @@ -137,7 +137,12 @@ function sendToZoblak() { "body": JSON.stringify(payload) }, function(result) { - print("server says: ", result.code); + if (result) { + print("server says: ", result.code); + } + else { + print("There is no server response present. Check connection!") + } } );