Roger A. Light
4a2e569171
-V now accepts `5, `311`, `31`, as well as `mqttv5` etc.
7 years ago
Roger A. Light
326292681a
Add maximum-qos support to broker and client.
...
This comes in the form of:
* Per listener maximum_qos option, which can be in the range 0-2.
* Changes to mosquitto_publish*() to return MOSQ_ERR_QOS_NOT_SUPPORTED
if attempting to publish with a higher QoS than supported.
* Bridges will downgrade messages to match the maximum QoS.
More tests on the broker side (specifically bridges) are required. This
needs bridge support for MQTT 5 first.
7 years ago
Roger Light
930a314caf
Add reason_code to on_publish_v5 callback.
7 years ago
Roger Light
1f9383d59a
Helper test scripts for client properties.
7 years ago
Roger Light
0546e7bebc
Add mosquitto_int_option and mosquitto_void_option
...
This deprecates mosquitto_opts_set().
7 years ago
Roger A. Light
2f54b16544
Fix mosquitto_pub not always sending everything with -l and QoS>0.
7 years ago
Roger A. Light
7c3666d593
Subscription identifier support.
7 years ago
Roger A. Light
fcf4cd0b27
Merge branch 'master' into mqtt5
7 years ago
Roger A. Light
db7901884f
Retain-as-published support.
7 years ago
Roger A. Light
a00dd29af8
Fix building where TLS-PSK is not available.
...
Closes #68 .
7 years ago
Roger A. Light
5073d83bf8
Don't generate client ids in v5 mode.
7 years ago
Roger A. Light
34293d07c1
Always print leading zeros in mosquitto_sub when output format is hex.
...
Closes #1066 .
Thanks to skiizo.
Bug: https://github.com/eclipse/mosquitto/issues/1066
7 years ago
Roger A. Light
0123ff1efe
Rename *_with_properties() -> *_v5().
7 years ago
Roger Light
a9d19d0911
Use MQTT 5 reason strings where appropriate in clients.
7 years ago
Roger Light
36e8659762
Only keep reading from stdin if we are connected.
7 years ago
Roger Light
47129e395e
Use v5 callback in pub client.
7 years ago
Roger Light
3cb8a52ef3
Add reason code to mosquitto_disconnect_with_properties()
7 years ago
Roger A. Light
85d9cfa2fa
Fix pub client stdin mode.
7 years ago
Roger A. Light
dd158ffeb3
Split common publish code into separate file.
7 years ago
Roger A. Light
ba67e1ffe5
Don't use gnu-specific strerror_r.
7 years ago
Bartosz Taczała
e86b27a2da
Adding support for QNX7.0.0
...
Change-Id: Id01e2880aa5cadc0e93a46b95fe675e1938051fa
Signed-off-by: Bartosz Taczała <bartosz.taczala@mobica.com>
7 years ago
Roger A. Light
f9e0fa246a
Validate properties coming into client library.
7 years ago
Roger A. Light
4c0c632dfa
Client memory "leak" fixes.
7 years ago
Roger A. Light
8aa936936e
Library and client support for topic-alias.
7 years ago
Roger A. Light
55b46037da
Change -y to -D in clients.
7 years ago
Roger A. Light
de3a9af1f7
Client+library support for unsubscribe properties.
7 years ago
Roger A. Light
49a8642986
Disallow properties that are invalid for a command.
7 years ago
Roger A. Light
741a8a9cc3
Client disconnect property support, plus disconnect packet fix.
7 years ago
Roger A. Light
383608613a
Client+lib will property support.
7 years ago
Roger A. Light
12cba75c73
Client support for adding properties.
7 years ago
majekw
7f1419e4de
Fix mosquitto_pub -l if compiled using cmake.
...
Since dde005ef92
mosquito_pub is throwing error
that 'threading support has not been compiled' when compiled using cmake.
It looks like WITH_THREADING flag is not set at top level Makefile and used
only in lib/ directory, so library is correctly compiled with threading.
But for client this flag is undefined, so it gives error on '-l' option.
This commit moves part related to WITH_THREADING flag out of lib/CMakeLists.txt
to top levele CMakeLists.txt, so it could be accessible to all subdirectories.
Signed-off-by: Marek Wodzinski <majek@w7i.pl>
7 years ago
Roger A. Light
35dea07dcd
Merge branch 'master'
7 years ago
Roger A. Light
e5eb03b2e6
Allow building without shared library.
7 years ago
Roger A. Light
abb3fee1f8
Coverage reporting for whole broker.
7 years ago
Roger A. Light
366744bad7
Fix subscribe_multiple datatypes.
7 years ago
Roger Light
6c9e8d51c2
Merge branch 'develop' into mqtt5
7 years ago
Roger A. Light
1867f30785
Merge branch 'master'
...
Conflicts:
ChangeLog.txt
7 years ago
Roger A. Light
0e76bed50e
Add -E option to mosquitto_sub.
...
This causes the client to exit immediately after its subscriptions are
acknowledged by the broker, and can be used to create a durable client
session without requiring messages to be delivered.
Closes #952 .
7 years ago
Roger A. Light
33a523eea9
Add identifiers for v5.
...
Clients know about v5, just need library support...
7 years ago
Roger A. Light
88765a5e80
Consistent use of config.h across the project.
7 years ago
Roger A. Light
dde005ef92
Return error in mosquitto_pub -l if compiled without threading.
7 years ago
Roger A. Light
e240a692a7
Fix compiling on Mac OS X <10.12 due to clock_gettime()
...
Closes #813 and #240 .
Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Roger A. Light
3d3b7fc46f
Fix default port problem when compiling clients using WITH_TLS=no.
7 years ago
Roger A. Light
3c517e617c
Fix static mosquitto_sub compiling.
8 years ago
Roger A. Light
9852f94ee0
Merge branch 'sub_client_timeout_upstream' of git://github.com/I2SE/mosquitto into I2SE-sub_client_timeout_upstream
8 years ago
Tifaifai Maupiti
4fc90248c5
Fix _POSIX_C_SOURCE : 199309L to 200809L
...
Signed-off-by: Tifaifai Maupiti <tifaifai.maupiti@gmail.com>
8 years ago
Roger A. Light
f4d238be18
Bump copyright years.
8 years ago
Roger A. Light
86ced4d98f
Add mosquitto_connect_with_flags_callback_set().
...
This allows a second connect callback to be used that exposes the
MQTT connect flags parameter.
Closes #738 , #128 .
8 years ago
Roger A. Light
40e6a75709
Use c99 as compiling standard.
...
Closes : #765 .
8 years ago
Roger A. Light
8a22b918c0
Fix Coverity Scan defects.
8 years ago