Commit Graph

3206 Commits (546df9db85578928dc6a6b617acb216714cf4355)
 

Author SHA1 Message Date
Roger A. Light 546df9db85 Build fixes, particularly pedantic compiler warnings. 3 years ago
Roger A. Light 29f49bf6ab Publish global out_packet values to $SYS 3 years ago
Roger A. Light 4099f8d1b6 Store out_packet bytes rather than having to calculate it. 3 years ago
Roger A. Light e3246f547c Print messages in mosquitto_passwd when adding/updating passwords.
Closes #2544. Thanks to Shruti Nanda.
3 years ago
Roger A. Light fe32e2506b Add more mosquitto_passwd examples 3 years ago
Roger A. Light 2c8dc3968e Migrate persist-sqlite to use persistence_location. 3 years ago
Roger A. Light 26b007f3fc Fix Coverity 1488816, use of uninitialised value. 3 years ago
Roger Light 6bce50cb65
Merge pull request #2532 from buschulte/fixes-for-kqueue-memory-issue
Fix memory issues in kqueue operations
3 years ago
Roger A. Light bf3a73a1cb Merge branch 'buschulte-macos-cmake-build' into develop 3 years ago
Roger A. Light 51f9a76f03 Merge branch 'macos-cmake-build' of https://github.com/buschulte/mosquitto into buschulte-macos-cmake-build 3 years ago
Roger A. Light e346288785 Merge branch 'buschulte-cmake-use-preinstalled-sqlite3-find-module' into develop 3 years ago
Roger A. Light 1749432382 Merge branch 'cmake-use-preinstalled-sqlite3-find-module' of https://github.com/buschulte/mosquitto into buschulte-cmake-use-preinstalled-sqlite3-find-module 3 years ago
Kai Buschulte a3125934dd Fix macOS compile issues
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Kai Buschulte 7e4746aac4 Fix missing symbols MacOS
Core symbols needed by plugins are now properly linked to their objects

 * Remove link_directories() call:

This specification is not necessary for our own libraries as cmake
shares this information over the targets.

If needed they should be specified target specific, like done for
the external DLT library.

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Kai Buschulte 0e9df05d0d Add imported target for cJSON
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Kai Buschulte 15208e55cc Use preinstalled CMake find module for SQLite3
CMake >= 3.14 comes with a preinstalled FindSQLite3 module, which now
replaces the self-written one.

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Kai Buschulte 6568984054 Fix memory issues in kqueue operations
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Roger A. Light 50dc039905 Migrate Coverity Scan run to GH actions
This is pending the addition of secrets.
3 years ago
Roger A. Light 4487b98dbb Fix clean 3 years ago
Roger A. Light 634d75a5b2 Alphabetise 3 years ago
Roger Light 572e840b2f
Merge pull request #2527 from abiliojr/test_config
broker: add command line argument to test configuration and exit
3 years ago
Abilio Marques 102c275764 broker: add command line argument to test configuration and exit
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
3 years ago
Roger A. Light 5731dd8653 Add mosquitto_persistence_location() for plugins. 3 years ago
Roger A. Light 1da29c9e51 Fix `-f` and `-s` options in mosquitto_rr. 3 years ago
Roger A. Light ab1803d72f Fix casting. 3 years ago
Roger A. Light 7f273e41d0 Merge branch 'abiliojr-sqlite_flush_page_options' into develop 3 years ago
Roger A. Light 5d483689bc Merge branch 'sqlite_flush_page_options' of https://github.com/abiliojr/mosquitto into abiliojr-sqlite_flush_page_options 3 years ago
Roger A. Light a84b5abb69 Update changelog and sort documentation order. 3 years ago
Roger A. Light 1ed8020057 Merge branch 'mlyszczek-add-float-format' into develop 3 years ago
Roger A. Light cff5a831f8 Merge branch 'add-float-format' of https://github.com/mlyszczek/mosquitto into mlyszczek-add-float-format 3 years ago
Roger A. Light 4fd51e9681 Fix incorrect earlier commit 3 years ago
Abilio Marques 82b6eaa31d Persist-sqlite: add flush_period and page_size options
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
3 years ago
Roger A. Light 4f294a715b Fix WS reads when fragmented packets are sent. 3 years ago
Michał Łyszczek 91bca8899c mosquitto_sub: add support to print floats
This patch adds support for two new format specifiers (%f and %d)
to print float and double data.

Generally it's not save to directly take native binary data of one machine and
print it on another one (since mosquitto is multiarch). But in case of floats
it's save to print representation of it, if __STDC_IEC_559__ is defined.

In C99 Annex F, standard we can read:
> This annex specifies C language support for the
> IEC 60559 floating-point standard.
> (...)
> An implementation that defines __STDC_IEC_559__
> shall conform to the specifications in this annex

All float printing code is behind __STDC_IEC_559__, so if that is not
defined, floating print will be disabled and error returned to user.

Documentation also describes restrictions about printing floats.

Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
3 years ago
Roger A. Light 75be1ed643 Improve uint16/32 packet read/write performance. 4 years ago
Roger A. Light efc8d064de Bring mosquittopp more up to date with libmosquitto. 4 years ago
Roger A. Light 5fcb2bc13f Simplify use of headers. 4 years ago
Roger A. Light 4c72542eae Move mosquittopp header to include dir. 4 years ago
Roger A. Light af40a91fb1 Fix possible incorrect free of persist base msgs. 4 years ago
Roger A. Light 09c296c175 Remove dead link. 4 years ago
Roger Light b39526a998
Merge pull request #2485 from abiliojr/fix_default_bridge_backoff
fix default bridge backoff periods (scale seconds to milliseconds)
4 years ago
Roger Light 37b44cfe8e
Merge pull request #2505 from NorbertHeusser/develop
Fixed CMakeLists.txt files
4 years ago
Norbert Heusser d4216c8cb6 Fixed CMakeLists.txt
* Addded missing files plugin_subscribe and plugin_unsubscribe to src/CMakeLists.txt
* Aligned mixed usage of all-keyword and all-plain in target_link_libra…ry definition in in CMakeLists.txt

Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
4 years ago
Roger A. Light b922c13509 Compile broker against pthreads if threading enabled.
This allows plugins to *carefully* use threads.
4 years ago
Roger A. Light 8a9d8ece37 Fix sqlite test 4 years ago
Roger A. Light 40d8015837 Add MOSQ_EVT_SUBSCRIBE and MOSQ_EVT_UNSUBSCRIBE events.
These are called when subscribe/unsubscribes actually succeed.
4 years ago
Roger A. Light fc4a59b288 Fix persist writing 4 years ago
Roger A. Light cd6356f14b Fix config.mk relative paths. 4 years ago
Roger A. Light c53a53bce0 Re-enable LTO for gcc builds. 4 years ago
Roger A. Light af42640d60 Dynsec: Allow initial password generation from environment variable. 4 years ago