Added support for sending and receiving MQTT messages. It enables end user to quickly upload or share JSON files between them. Given the nature of MQTT, I also worked with @KevTheHermit who has proxdump.com site, where you can upload pm3 dump files and browse. He added support for MQTT uploads, so the process to share a file and it gets also uploaded to proxdump.com is very smooth. Feel free to improve this functionality with TLS etc. For now it looks quite promising.
This commit is contained in:
1 parent
732cc1b82e
commit
c7cf62fcf1
22 files changed
+4742
-10
No files matched your search
@@ -131,6 +131,12 @@ WHEREAMILIBINC = -I$(WHEREAMILIBPATH)
|
||||
WHEREAMILIB = $(WHEREAMILIBPATH)/libwhereami.a
|
||||
WHEREAMILIBLD =
|
||||
|
||||
## MQTT
|
||||
MQTTLIBPATH = ./deps/mqtt
|
||||
MQTTLIBINC = -I$(MQTTLIBPATH)
|
||||
MQTTLIB = $(MQTTLIBPATH)/mqtt.a
|
||||
MQTTLIBLD =
|
||||
|
||||
##########################
|
||||
# common local libraries #
|
||||
##########################
|
||||
@@ -239,6 +245,12 @@ STATICLIBS += $(WHEREAMILIB)
|
||||
LDLIBS += $(WHEREAMILIBLD)
|
||||
PM3INCLUDES += $(WHEREAMILIBINC)
|
||||
|
||||
## MQTT
|
||||
# not distributed as system library
|
||||
STATICLIBS += $(MQTTLIB)
|
||||
LDLIBS += $(MQTTLIBLD)
|
||||
PM3INCLUDES += $(MQTTLIBINC)
|
||||
|
||||
####################
|
||||
# system libraries #
|
||||
####################
|
||||
@@ -682,6 +694,7 @@ SRCS = mifare/aiddesfire.c \
|
||||
cmdlfvisa2000.c \
|
||||
cmdlfzx8211.c \
|
||||
cmdmain.c \
|
||||
cmdmqtt.c \
|
||||
cmdnfc.c \
|
||||
cmdparser.c \
|
||||
cmdpiv.c \
|
||||
@@ -877,6 +890,7 @@ endif
|
||||
$(Q)$(MAKE) --no-print-directory -C $(REVENGLIBPATH) clean
|
||||
$(Q)$(MAKE) --no-print-directory -C $(TINYCBORLIBPATH) clean
|
||||
$(Q)$(MAKE) --no-print-directory -C $(WHEREAMILIBPATH) clean
|
||||
$(Q)$(MAKE) --no-print-directory -C $(MQTTLIBPATH) clean
|
||||
@# Just in case someone compiled within these dirs:
|
||||
$(Q)$(MAKE) --no-print-directory -C $(MBEDTLSLIBPATH) clean
|
||||
|
||||
@@ -974,6 +988,10 @@ ifneq ($(WHEREAMI_FOUND),1)
|
||||
$(Q)$(MAKE) --no-print-directory -C $(WHEREAMILIBPATH) all
|
||||
endif
|
||||
|
||||
$(MQTTLIB): .FORCE
|
||||
$(info [*] MAKE $@)
|
||||
$(Q)$(MAKE) --no-print-directory -C $(MQTTLIBPATH) all
|
||||
|
||||
########
|
||||
# SWIG #
|
||||
########
|
||||
|
||||
Reference in new issue
Block a user