mirror of
https://github.com/anklimov/lighthub
synced 2025-12-07 12:19:49 +03:00
JSON string type control. Relability fix
This commit is contained in:
@@ -30,7 +30,7 @@ int abstractIn::publish(char * value, const char* subtopic)
|
||||
if (in)
|
||||
{
|
||||
aJsonObject *emit = aJson.getObjectItem(in->inputObj, "emit");
|
||||
if (emit)
|
||||
if (emit && emit->type == aJson_String)
|
||||
{
|
||||
return publishTopic(emit->valuestring,value,subtopic);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user