Commit Graph

169 Commits

Author SHA1 Message Date
fpagliughi
49278fae82 Split out the topic filter to be a simple string if it has no wildcards
Some checks are pending
CMake on multiple platforms / build (Debug, cl, cl, windows-latest) (push) Waiting to run
CMake on multiple platforms / build (Debug, clang, clang++, ubuntu-latest) (push) Waiting to run
CMake on multiple platforms / build (Debug, gcc, g++, ubuntu-latest) (push) Waiting to run
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Waiting to run
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Waiting to run
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Waiting to run
2025-06-24 13:16:31 -04:00
fpagliughi
670b38df37 TopicMatcher matching to parent when using '#' wildcard. 2025-06-24 10:22:57 -04:00
Flávio Tapajós
9c9e515ea9
fix: prevent undefined behaviour on empty topic matching
Signed-off-by: Flávio Tapajós <flavio.tapajos@newtesc.com.br>
2025-06-18 11:15:34 -03:00
Laurenz Altenmüller
32f75ac62f update TEST_EXTERNAL_SERVER urls
Signed-off-by: Laurenz Altenmüller <git@laure.nz>
2025-05-15 16:53:49 -04:00
fpagliughi
9a93f49d75 #540 Missing default argument in async_client changed constructor breaks code compatibility. Updated 'client' and 'create_options' construcotrs to agree with 'async_client' 2025-03-10 16:00:49 -04:00
fpagliughi
d33c759c78 Minor cleanup of CMake files 2025-02-09 16:09:01 -05:00
fpagliughi
2f174a2398 Fixed some corner cases for topic_filter::matches() 2025-01-07 21:25:56 -05:00
fpagliughi
1e7d090229 #524 Fixed copy and move operations for 'subscribe_options'. Added unit tests. 2025-01-04 14:56:39 -05:00
fpagliughi
17e4ee14af Added unit tests for 'subscribe_options' 2025-01-04 11:37:56 -05:00
fpagliughi
bc7a4e9715 Some minor cleanup of PRs 2025-01-03 16:48:56 -05:00
Frank Pagliughi
7b2b3c2415
Merge pull request #518 from ssams/develop
Add function for checking async consumer event queue size
2025-01-03 16:23:36 -05:00
fpagliughi
9bb127986d #523 Additional ways to create and publish messages with v5 properties 2025-01-03 15:31:44 -05:00
Sebastian Sams
0fee432f02 add function for checking async consumer event queue size
Signed-off-by: Sebastian Sams <sebastian.sams@bestsolution.at>
2024-10-07 06:55:04 +00:00
fpagliughi
02b589ea98 Queries to check if consumer thread is closed/done. 2024-07-13 07:42:36 -04:00
fpagliughi
3b857a5e0b Fixed up the new closable thread queue. 2024-07-12 08:34:54 -04:00
fpagliughi
1b71a166a9 Made thread queue closable 2024-07-10 13:26:33 -04:00
fpagliughi
c892569f54 For backward compatibility, the legacy message consumer calls should ignore 'connected' events. 2024-07-08 20:51:17 -04:00
fpagliughi
1c08a3e4a4 Copied certificates from Paho C library for testing SSL/TLS examples, w/ Mosquitto config 2024-07-08 20:51:00 -04:00
fpagliughi
0b5c312d9f Made 'message_arrived_event' just a message pointer 2024-07-07 10:34:01 -04:00
fpagliughi
604716c2e7 Cleaned up doc comments for the new event consumer methods. 2024-07-07 00:29:53 -04:00
fpagliughi
43e8ef67a3 Converted the consumer message queue to an event queue. 2024-07-06 19:42:41 -04:00
fpagliughi
134e40db30 Made an explicit 'shared' target in CMake with 'paho-mqttpp3' a default for whichever target was built. 2024-07-03 17:32:00 -04:00
fpagliughi
b8d221f6d7 #355 CMake selecting C++ standard via target options 2024-07-03 13:58:25 -04:00
fpagliughi
91bfc64bdd Fixed doc comment and deprecation warnings. 2024-06-26 21:45:20 -04:00
fpagliughi
d386d30be9 Reworked 'create_options' for all params (serverURI, clientId, etc); new persistence_type variant; reqorked async_client constructors 2024-06-22 20:00:06 -04:00
fpagliughi
7d5dcce159 Reformat sources and added .clang-format files. 2024-06-18 16:01:26 -04:00
fpagliughi
26f4948325 #483 Unit tests for moving and copying connect_options_builder objects 2024-06-16 18:54:43 -04:00
fpagliughi
b98f10949d Some CMake reformatting 2024-06-15 14:59:25 -04:00
fpagliughi
773f4e9d66 Some new property unit tests and reformatting 2024-06-15 09:20:59 -04:00
fpagliughi
9fdfe32116 Fixed and optimized 'topic_matcher' 2024-06-02 11:31:37 -04:00
Frank Pagliughi
a513e06d5b
Merge pull request #466 from fireflyautomatix/iterable-string-collection
Iterable string collection
2023-12-09 16:06:39 -05:00
Adam Apsohian
967ce5d7a1 add string_collection iterator 2023-12-08 11:20:11 -07:00
fpagliughi
a90ecd555a #416 Removed FindPahoMqttC.cmake. Using Paho C package directly. 2023-11-26 22:25:15 -05:00
fpagliughi
9635a5157c Fixed segfult in new unit test on Mac 2023-11-20 21:26:15 -05:00
fpagliughi
cd6dd125a7 #343 async_client::try_consume_message_until taking single parameter fails to compile 2023-11-20 20:17:25 -05:00
fpagliughi
02cf646d84 Added Windows DLL export nonsense to make class static constants visible to apps 2023-11-20 19:30:50 -05:00
fpagliughi
6f79d51d53 Fixed build warning with Windows MSVC 2023-11-20 19:28:07 -05:00
fpagliughi
a7e9b12042 #461 Updated license to EPL-v2.0 2023-11-18 14:01:59 -05:00
fpagliughi
c502f84ecf Continued fixing connect and disconnect copy and move functions with new unit tests. See #445 2023-11-17 09:36:57 -05:00
fpagliughi
94efd557b4 #411 Missing virtual keyword for some client methods 2023-11-12 20:04:14 -05:00
fpagliughi
bb66355be6 #444 Unit tests to check that connect options builder sets properties. 2023-11-12 19:32:47 -05:00
fpagliughi
b94cb27722 Connect option initializers for v5 and WebSockets. 2023-11-12 18:30:41 -05:00
fpagliughi
226ca35f5d Fixed unit test CMake for Catch2 v2.x and added missing catch2_version.h 2023-11-11 16:24:20 -05:00
fpagliughi
f45bc093e5 #313 Fixed persistence unit tests on Windows w/ MSVC 2023-11-11 16:15:04 -05:00
fpagliughi
509da56afc #313 Unit tests building on Windows. Support for Catch2 v3.x. Needed to get rid of make_unique<> for Windows 2023-11-11 16:14:20 -05:00
fpagliughi
e631445088 Minor cleanup of CMake files 2023-07-31 11:01:09 -04:00
Sebastian Sams
5d267a0fff fix copy/move ctor for disconnect opts with props
Signed-off-by: Sebastian Sams <sebastian.sams@bestsolution.at>
2023-07-18 12:07:41 +00:00
Sebastian Sams
8c60105e06 fix copy/move ctor for connect opts with props
ensures pointers to the properties are updated properly
in move and copy constructors, so the c struct pointers remain valid

Signed-off-by: Sebastian Sams <sebastian.sams@bestsolution.at>
2023-07-18 12:20:09 +02:00
Devnath Nair
c6947e1e61 Fix typos across the project
Signed-off-by: Devnath Nair <mail@devnathnair.com>
2023-06-09 23:14:29 +10:00
fpagliughi
67b1e5e40d #385 Thread queue deadlock with multiple consumers 2022-04-28 23:24:06 -04:00