Merge pull request #318 from jeffmendoza/patch-1

Ifdef access to MQTT variable.
This commit is contained in:
JP Mens
2019-09-07 10:09:00 +02:00
committed by GitHub

View File

@@ -86,7 +86,9 @@ struct luadata *hooks_init(struct udata *ud, char *script)
ld->L = luaL_newstate();
luaL_openlibs(ld->L);
#ifdef WITH_MQTT
MQTTconn = ud->mosq;
#endif
/*
* Set up a global with some values.