mikebetz / mqtt-sonoff

code for esp8266 projects, including home automation, using sonoff relays and mqtt broker
0 stars 0 forks source link

error-trapping for non-existant saved parameters does not work #12

Closed mikebetz closed 7 years ago

mikebetz commented 7 years ago

If a parameter is empty after reading from the saved file ... code hangs

mikebetz commented 7 years ago

using json.containsKey("keyname") as a test seems to be working instead of json["keyname"].success()