Skip to content

Commit

Permalink
Fix thread errors, and add multirecv debug test.
Browse files Browse the repository at this point in the history
  • Loading branch information
philljj committed Mar 20, 2024
1 parent 9bc9856 commit a28f4f0
Show file tree
Hide file tree
Showing 6 changed files with 1,060 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ examples/multithread/multithread
examples/wiot/wiot
examples/pub-sub/mqtt-pub
examples/pub-sub/mqtt-sub
examples/multirecv/multirecv

# eclipse
.cproject
Expand Down
24 changes: 24 additions & 0 deletions examples/include.am
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ noinst_PROGRAMS += examples/sn-client/sn-client \
examples/sn-client/sn-client_qos-1 \
examples/sn-client/sn-multithread
endif
if BUILD_STRESS
noinst_PROGRAMS += examples/multirecv/multirecv
endif

noinst_HEADERS += examples/mqttclient/mqttclient.h \
examples/mqttsimple/mqttsimple.h \
Expand All @@ -36,6 +39,10 @@ noinst_HEADERS += examples/mqttclient/mqttclient.h \
if BUILD_SN
noinst_HEADERS += examples/sn-client/sn-client.h
endif
if BUILD_STRESS
noinst_HEADERS += examples/multirecv/multirecv.h
endif


# MQTT Client Example
examples_mqttclient_mqttclient_SOURCES = examples/mqttclient/mqttclient.c \
Expand Down Expand Up @@ -136,6 +143,16 @@ examples_sn_client_sn_multithread_DEPENDENCIES = src/libwolfmqtt.la
examples_sn_client_sn_multithread_CPPFLAGS = -I$(top_srcdir)/examples $(AM_CPPFLAGS)
endif

if BUILD_STRESS
# multirecv Example
examples_multirecv_multirecv_SOURCES = examples/multirecv/multirecv.c \
examples/mqttnet.c \
examples/mqttexample.c
examples_multirecv_multirecv_LDADD = src/libwolfmqtt.la
examples_multirecv_multirecv_DEPENDENCIES = src/libwolfmqtt.la
examples_multirecv_multirecv_CPPFLAGS = -I$(top_srcdir)/examples $(AM_CPPFLAGS)
endif

# MQTT pub and sub clients
examples_pub_sub_mqtt_pub_SOURCES = examples/pub-sub/mqtt-pub.c \
examples/mqttnet.c \
Expand Down Expand Up @@ -172,6 +189,9 @@ dist_example_DATA+= examples/sn-client/sn-multithread.c
endif
dist_example_DATA+= examples/pub-sub/mqtt-pub.c
dist_example_DATA+= examples/pub-sub/mqtt-sub.c
if BUILD_STRESS
dist_example_DATA+= examples/multirecv/multirecv.c
endif

DISTCLEANFILES+= examples/mqttclient/.libs/mqttclient \
examples/firmware/.libs/fwpush \
Expand All @@ -189,6 +209,10 @@ DISTCLEANFILES+= examples/sn-client/.libs/sn-client \
examples/sn-client/.libs/sn-multithread
endif

if BUILD_STRESS
DISTCLEANFILES+= examples/multirecv/.libs/multirecv
endif

EXTRA_DIST+= examples/mqttuart.c \
examples/publish.dat \
examples/mqttclient/mqttclient.vcxproj \
Expand Down
Loading

0 comments on commit a28f4f0

Please sign in to comment.