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
5bfa672b
Commit
5bfa672b
authored
Jun 21, 2018
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix qos selection in test
parent
c9495352
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
test11.c
test/test11.c
+5
-5
No files found.
test/test11.c
View file @
5bfa672b
...
...
@@ -346,7 +346,7 @@ void test_client_topic_aliases_onSubscribe(void* context, MQTTAsync_successData5
MQTTAsync_responseOptions
opts
=
MQTTAsync_responseOptions_initializer
;
MQTTProperty
property
;
MQTTAsync_message
pubmsg
=
MQTTAsync_message_initializer
;
int
qos
,
rc
;
int
rc
;
MyLog
(
LOGA_INFO
,
"Suback properties:"
);
logProperties
(
&
response
->
props
);
...
...
@@ -603,7 +603,7 @@ void test_server_topic_aliases_onSubscribe(void* context, MQTTAsync_successData5
MQTTAsync_responseOptions
opts
=
MQTTAsync_responseOptions_initializer
;
MQTTProperty
property
;
MQTTAsync_message
pubmsg
=
MQTTAsync_message_initializer
;
int
qos
,
rc
;
int
qos
=
0
,
rc
;
MyLog
(
LOGA_INFO
,
"Suback properties:"
);
logProperties
(
&
response
->
props
);
...
...
@@ -775,7 +775,7 @@ void test_subscription_ids_onSubscribe(void* context, MQTTAsync_successData5* re
MQTTAsync_responseOptions
opts
=
MQTTAsync_responseOptions_initializer
;
MQTTProperty
property
;
MQTTAsync_message
pubmsg
=
MQTTAsync_message_initializer
;
int
qos
,
rc
;
int
rc
;
static
int
subs_count
=
0
;
MyLog
(
LOGA_INFO
,
"Suback properties:"
);
...
...
@@ -804,9 +804,9 @@ void test_subscription_ids_onSubscribe(void* context, MQTTAsync_successData5* re
pubmsg
.
payload
=
"a much longer message that we can shorten to the extent that we need to payload up to 11"
;
pubmsg
.
payloadlen
=
11
;
pubmsg
.
retained
=
0
;
pubmsg
.
qos
=
qos
;
pubmsg
.
qos
=
1
;
rc
=
MQTTAsync_sendMessage
(
c
,
test_subscription_ids_globals
.
test_topic
,
&
pubmsg
,
&
opts
);
assert
(
"Good rc from send"
,
rc
==
MQTTASYNC_SUCCESS
,
"rc was %d"
,
rc
);
assert
(
"Good rc from send"
,
rc
==
MQTTASYNC_SUCCESS
,
"rc was %d
\n
"
,
rc
);
if
(
rc
!=
MQTTASYNC_SUCCESS
)
test_subscription_ids_globals
.
test_finished
=
1
;
}
...
...
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