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
648f057f
Commit
648f057f
authored
Sep 09, 2013
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Token not set in one call to publish in test1.c
parent
d7875238
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test1.c
test/test1.c
+1
-1
No files found.
test/test1.c
View file @
648f057f
...
@@ -279,7 +279,7 @@ void test1_sendAndReceive(MQTTClient* c, int qos, char* test_topic)
...
@@ -279,7 +279,7 @@ void test1_sendAndReceive(MQTTClient* c, int qos, char* test_topic)
for
(
i
=
0
;
i
<
iterations
;
++
i
)
for
(
i
=
0
;
i
<
iterations
;
++
i
)
{
{
if
(
i
%
10
==
0
)
if
(
i
%
10
==
0
)
rc
=
MQTTClient_publish
(
c
,
test_topic
,
pubmsg
.
payloadlen
,
pubmsg
.
payload
,
pubmsg
.
qos
,
pubmsg
.
retained
,
NULL
);
rc
=
MQTTClient_publish
(
c
,
test_topic
,
pubmsg
.
payloadlen
,
pubmsg
.
payload
,
pubmsg
.
qos
,
pubmsg
.
retained
,
&
dt
);
else
else
rc
=
MQTTClient_publishMessage
(
c
,
test_topic
,
&
pubmsg
,
&
dt
);
rc
=
MQTTClient_publishMessage
(
c
,
test_topic
,
&
pubmsg
,
&
dt
);
assert
(
"Good rc from publish"
,
rc
==
MQTTCLIENT_SUCCESS
,
"rc was %d"
,
rc
);
assert
(
"Good rc from publish"
,
rc
==
MQTTCLIENT_SUCCESS
,
"rc was %d"
,
rc
);
...
...
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