Skip to content

Commit

Permalink
Add MQTT client example
Browse files Browse the repository at this point in the history
  • Loading branch information
cpq committed Dec 12, 2020
1 parent d806ed5 commit f3f397f
Show file tree
Hide file tree
Showing 4 changed files with 591 additions and 4 deletions.
18 changes: 18 additions & 0 deletions examples/mqtt_client/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
PROG ?= example
MBEDTLS_DIR ?=

ifeq "$(MBEDTLS_DIR)" ""
else
CFLAGS += -DMG_ENABLE_MBEDTLS=1 -I$(MBEDTLS_DIR)/include -I/usr/include
CFLAGS += -L$(MBEDTLS_DIR)/lib -lmbedtls -lmbedcrypto -lmbedx509
endif

all: $(PROG)
$(DEBUGGER) ./$(PROG) $(ARGS)


$(PROG): main.c
$(CC) ../../mongoose.c -I../.. -W -Wall $(CFLAGS) -o $(PROG) main.c

clean:
rm -rf $(PROG) *.o *.dSYM *.gcov *.gcno *.gcda *.obj *.exe *.ilk *.pdb
Loading

0 comments on commit f3f397f

Please sign in to comment.