Ifdef access to MQTT variable.

This commit is contained in:
Jeff Mendoza
2019-09-06 21:59:43 -07:00
committed by GitHub
parent 2d8dff9b89
commit 0d4876ed3a
+2
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.