diff options
author | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-12-03 12:28:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-03 12:28:55 +0100 |
commit | bfe2b0562e020de68628d050b4a4a7997d8a8c4b (patch) | |
tree | 2517af4d3213d8183a4eb12c06a3471eb15735cb /mk/modules.mk | |
parent | 4f1686ac955698202de50693b974a0227dddcf1e (diff) |
mqtt: new module for MQTT (#332)
mqtt: relay ua_event with publish
relay incoming message to long commands (with '/' prefix)
mqtt: add file for publish
mqtt: add command response
mqtt: add subscribe.c
mqtt: use fd_listen for READ/WRITE
Make + Config entry for MQTT module (#329)
* include mqtt in modules and config
* Check for mosquitto-dev
* fix mqtt module checks
* Moving MQTT config to module_app block
mqtt: add JSON payload for events
mqtt: add JSON decoding of command
mqtt: add config for broker host/port
Diffstat (limited to 'mk/modules.mk')
-rw-r--r-- | mk/modules.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mk/modules.mk b/mk/modules.mk index 57475d0..9211dfd 100644 --- a/mk/modules.mk +++ b/mk/modules.mk @@ -187,6 +187,9 @@ USE_SPEEX_PP := $(shell [ -f $(SYSROOT)/include/speex_preprocess.h ] || \ USE_SYSLOG := $(shell [ -f $(SYSROOT)/include/syslog.h ] || \ [ -f $(SYSROOT_ALT)/include/syslog.h ] || \ [ -f $(SYSROOT)/local/include/syslog.h ] && echo "yes") +HAVE_LIBMQTT := $(shell [ -f $(SYSROOT)/include/mosquitto.h ] || \ + [ -f $(SYSROOT)/local/include/mosquitto.h ] \ + && echo "yes") USE_V4L := $(shell [ -f $(SYSROOT)/include/libv4l1.h ] || \ [ -f $(SYSROOT)/local/include/libv4l1.h ] \ && echo "yes") @@ -273,6 +276,10 @@ MODULES += srtp MODULES += uuid MODULES += debug_cmd +ifneq ($(HAVE_LIBMQTT),) +MODULES += mqtt +endif + ifneq ($(HAVE_PTHREAD),) MODULES += aubridge aufile endif |