Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
paho.mqtt.c
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eclipse
paho.mqtt.c
Commits
ca795ebd
Commit
ca795ebd
authored
Nov 10, 2015
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More debugging in test2.c
parent
bfd717e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
test2.c
test/test2.c
+3
-2
No files found.
test/test2.c
View file @
ca795ebd
...
@@ -310,6 +310,7 @@ MQTTClient_message test1_pubmsg_check = MQTTClient_message_initializer;
...
@@ -310,6 +310,7 @@ MQTTClient_message test1_pubmsg_check = MQTTClient_message_initializer;
void
test1_deliveryComplete
(
void
*
context
,
MQTTClient_deliveryToken
dt
)
void
test1_deliveryComplete
(
void
*
context
,
MQTTClient_deliveryToken
dt
)
{
{
lock_mutex
(
deliveryCompleted_mutex
);
lock_mutex
(
deliveryCompleted_mutex
);
MyLog
(
LOGA_INFO
,
"Delivery complete for token %d"
,
dt
);
++
test1_deliveryCompleted
;
++
test1_deliveryCompleted
;
unlock_mutex
(
deliveryCompleted_mutex
);
unlock_mutex
(
deliveryCompleted_mutex
);
}
}
...
@@ -400,7 +401,7 @@ thread_return_type WINAPI test1_sendAndReceive(void* n)
...
@@ -400,7 +401,7 @@ thread_return_type WINAPI test1_sendAndReceive(void* n)
completed the QoS 2 handshake with the publisher. For QoS 1 and 2,
completed the QoS 2 handshake with the publisher. For QoS 1 and 2,
allow time for the final delivery complete callback before checking
allow time for the final delivery complete callback before checking
that all expected callbacks have been made */
that all expected callbacks have been made */
wait_seconds
=
1
0
;
wait_seconds
=
2
0
;
while
((
test1_deliveryCompleted
<
iterations
*
2
)
&&
(
wait_seconds
--
>
0
))
while
((
test1_deliveryCompleted
<
iterations
*
2
)
&&
(
wait_seconds
--
>
0
))
{
{
MyLog
(
LOGA_DEBUG
,
"Delivery Completed %d count %d"
,
test1_deliveryCompleted
,
i
);
MyLog
(
LOGA_DEBUG
,
"Delivery Completed %d count %d"
,
test1_deliveryCompleted
,
i
);
...
@@ -598,7 +599,7 @@ void test2_sendAndReceive(MQTTClient* c, int qos, char* test_topic)
...
@@ -598,7 +599,7 @@ void test2_sendAndReceive(MQTTClient* c, int qos, char* test_topic)
completed the QoS 2 handshake with the publisher. For QoS 1 and 2,
completed the QoS 2 handshake with the publisher. For QoS 1 and 2,
allow time for the final delivery complete callback before checking
allow time for the final delivery complete callback before checking
that all expected callbacks have been made */
that all expected callbacks have been made */
wait_seconds
=
1
0
;
wait_seconds
=
2
0
;
while
((
test2_deliveryCompleted
<
iterations
)
&&
(
wait_seconds
--
>
0
))
while
((
test2_deliveryCompleted
<
iterations
)
&&
(
wait_seconds
--
>
0
))
{
{
MyLog
(
LOGA_DEBUG
,
"Delivery Completed %d count %d"
,
test2_deliveryCompleted
,
i
);
MyLog
(
LOGA_DEBUG
,
"Delivery Completed %d count %d"
,
test2_deliveryCompleted
,
i
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment