Commit Graph

56 Commits

Author SHA1 Message Date
Ian Craggs 7fabf60235 Fix compile warnings about no function prototype 2024-04-02 16:06:38 +01:00
Ian Craggs 140418771c Some more test adjustments 2022-02-06 17:03:12 +00:00
Ian Craggs b79bcf0d40 Update out of date mqtt server hostnames 2022-01-27 16:41:46 +00:00
Ian Craggs 332662ec6a Remove compile warnings in tests 2020-10-27 20:09:51 +00:00
Ian Craggs e4c3757524 Update tests to remove compile warnings on Ubuntu 20.04 2020-10-02 15:55:42 +01:00
Ian Craggs 09b582ebff More HA test fixes 2020-07-02 23:10:33 +01:00
Ian Craggs 5aaa25956f Clean up ha test 2020-07-02 17:40:45 +01:00
Ian Craggs ced9e40a8c Fix tests as part of #640 2020-06-10 22:47:59 +01:00
Ian Craggs 9fef662fa6 Some extra work for #640 - don't clean message queue on session present 0 2020-06-10 16:34:55 +01:00
Ian Craggs 97f469eee4 Don't remove queued messages on state cleanup #640 2020-06-08 16:14:50 +01:00
Ian Craggs 1e91229cb6 Update license from EPL v1 to v2 2020-04-06 13:27:50 +01:00
fpagliughi fbd38b16cf
#368 Add underscores to Windows compiler macro checks, _WIN32 and _WIN64
Signed-off-by: fpagliughi <fpagliughi@mindspring.com>
2020-01-25 10:38:18 -05:00
fpagliughi 62e7f5c035
#681 The Eclipse MQTT sandbox server moved to new address, 'mqtt.eclipse.org' 2019-07-20 12:51:38 -04:00
Ian Craggs fcef9b5dd5 Merge branch 'develop' into mqttv5 2018-06-04 15:38:02 +01:00
Keith Holman 8c988485ec build: various warning fixes
This patch fixes various warnings produced during the build the most
common warning, is the truncation of "size_t" (usually unsigned long) to
(int).  This patch explicitly casts the result to "int" in these cases
to supress the warning.  Additionally, this patch includes a fix to an
internal library load function to take a "const char *" parameter
instead of a "char *" parameter.

Signed-off-by: Keith Holman <keith.holman@windriver.com>
2018-05-02 17:01:21 -04:00
Ian Craggs 167278c0a8 First pass at MQTTAsync - sending V5 packets and receiving responses 2018-04-27 22:26:23 +01:00
Ian Craggs f11f08e8b0 Binary passwords and will messages: PR #159, issues #167 and #34
Squashed commit of the following:

commit 907b9ecdaf160bf95c17aafcaf4ab3e656ab9ccc
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Apr 5 23:33:44 2017 +0100

    Use binary passwords in tests

commit 3930b18d3835727e3cb98ef0ce1a742bd0dffab7
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Apr 5 17:15:29 2017 +0100

    Binary MQTT password support

commit 4abe6a996b1219aafa22b5dd69bf1e676d377466
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Apr 5 16:13:18 2017 +0100

    Fix test config

commit e742ed182d6de44e9afd6e9c9c03c79f359fbe29
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Apr 5 15:46:53 2017 +0100

    Async binary will message

commit 9313e66214720c285f510e325a5c942ad22f2542
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Apr 5 11:50:10 2017 +0100

    Binary will message support, take 2

commit 5cf548505a548eff394348aa7406e5a34d0f5054
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Tue Apr 4 22:54:15 2017 +0100

    Binary will message
2017-04-06 10:49:05 +01:00
Ian Craggs b880d34f4b Windows CMake build additions and corrections 2017-03-20 22:47:28 +00:00
Guilherme Maciel Ferreira 7b92bc3ec9 Using standard constants for exit(3) and return
According to ISO/IEC 9899:2011, section 7.22.4.4 (The exit function),
"the constant EXIT_FAILURE is the implementation independent way to
issue failures to exit(3)." Whereas EXIT_SUCCESS is the portable way
to return success.

Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
2017-03-06 11:55:23 -06:00
Guilherme Maciel Ferreira 6e88fdffbc Ensure an empty parameter list using void
According to ISO/IEC 9899:2011, section 6.7.6.3 (Function declarators
including prototypes): "The special case of an unnamed parameter of
type void as the only item in the list specifies that the function
has no parameters."

Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
2017-03-06 11:44:52 -06:00
Ian Craggs a3ec008874 Fix test 4 on Windows 2016-06-17 05:11:38 +01:00
Ian Craggs e93f8006d1 Call failure callbacks when commands are incomplete
Bug: 444103
2015-08-11 15:20:12 +01:00
Ian Craggs 9909826e9b Turn off some warnings 2014-10-03 16:40:31 +01:00
Ian Craggs 04e69596c2 Remove compiler warning in test4.c 2014-10-03 16:33:49 +01:00
Ian Craggs cf409bd15e Test4.c updates for reliability 2014-10-03 16:29:46 +01:00
Ian Craggs e91516b94d Remove test debugging settings 2014-09-25 21:51:32 +01:00
Ian Craggs 8b0906f841 More debug for test4 2014-09-25 21:22:20 +01:00
Ian Craggs 399968b6fc Debug for test4 2014-09-25 13:48:06 +01:00
Ian Craggs 2c969cfaa5 Remove assertion which fails against Mosquitto 2014-08-26 21:28:49 +01:00
Ian Craggs 1eb002b1b4 Remove debug in tests and add modification comment - remove retry default
Bug: 442400
2014-08-26 20:38:05 +01:00
Ian Craggs 0f8eca4955 Debug test4 2014-08-26 11:51:30 +01:00
Ian Craggs 732a941b88 Fix test temporarily 2014-08-26 11:37:28 +01:00
Ian Craggs 2ba53a3832 add MQTTAsync_waitForCompletion and MQTTAsync_isComplete
Bug: 433871
2014-08-18 19:19:57 +01:00
Ian Craggs 3b79c88c08 Merge ssh://git.eclipse.org:29418/paho/org.eclipse.paho.mqtt.c into develop
Conflicts:
	src/MQTTAsync.c
	src/MQTTClient.c
	src/MQTTProtocolOut.c
2014-05-29 13:46:25 +01:00
Ian Craggs 587f674ed6 Windows build for Hudson and Visual Studio 2014-05-15 16:42:36 +01:00
Ian Craggs 2c108549bf MQTT 3.1.1 changes in tests and synchronous client 2014-03-14 10:17:07 +00:00
Ian Craggs 5ea7496633 Allow applications to choose MQTT 3.1 or 3.1.1 explicitly 2014-03-13 15:15:56 +00:00
Ian Craggs fa68280d04 Fix buffering of connect packet 2014-03-12 15:45:22 +00:00
Ian Craggs bc11ecc07a Turn on test tracing for debug 2014-03-11 16:11:55 +00:00
Ian Craggs 7c30485c5e Update header commments for 3.1.1 updates 2014-03-03 12:43:56 +00:00
Ian Craggs 28e3c0182d MQTT 3.1.1 2014-03-03 00:21:44 +00:00
Ian Craggs 253842cedb Build clean on gcc 4.7 2013-11-15 23:07:06 +00:00
Ian Craggs baeaf2dca9 Tracing for test3.c 2013-10-11 16:21:29 +01:00
Ian Craggs 57a3cd1529 Another clientid to shorten in test4.c 2013-10-11 15:48:47 +01:00
Ian Craggs f54ff292ef Shorten clientid in test4.c test6, to be less than 23 chars 2013-10-11 15:44:47 +01:00
Ian Craggs 735662d6ed Test4 tracing 2013-10-11 15:40:40 +01:00
Ian Craggs dd2a4063a8 Threading updates for bug #419233 2013-10-11 15:20:50 +01:00
Ian Craggs be218ab65a Reset trace settings to error only 2013-10-09 11:42:24 +01:00
Ian Craggs 4795d896bb Turn on trace to debug occasional error 2013-09-12 16:59:21 +01:00
Ian Craggs 77d7dae4ce Improve tests - will messages and ha connect options 2013-08-28 16:46:28 +01:00