Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
k-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈伟灿
k-sdk
Commits
a5dd9123
Commit
a5dd9123
authored
Sep 15, 2020
by
chen.weican
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改内容】去掉不必要的打印
【提交人】陈伟灿
parent
12530ad9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
common/mqtt/MQTTAsync.c
common/mqtt/MQTTAsync.c
+1
-2
common/mqtt/MQTTProtocolClient.c
common/mqtt/MQTTProtocolClient.c
+0
-4
No files found.
common/mqtt/MQTTAsync.c
View file @
a5dd9123
...
...
@@ -2885,7 +2885,7 @@ static int MQTTAsync_cleanSession(Clients* client)
static
int
MQTTAsync_deliverMessage
(
MQTTAsyncs
*
m
,
char
*
topicName
,
size_t
topicLen
,
MQTTAsync_message
*
mm
)
{
int
rc
;
printf
(
"[%s][%d]
\n
"
,
__FUNCTION__
,
__LINE__
);
Log
(
TRACE_MIN
,
-
1
,
"Calling messageArrived for client %s, queue depth %d"
,
m
->
c
->
clientID
,
m
->
c
->
messageQueue
->
count
);
rc
=
(
*
(
m
->
ma
))(
m
->
maContext
,
topicName
,
(
int
)
topicLen
,
mm
);
...
...
@@ -2902,7 +2902,6 @@ void Protocol_processPublication(Publish* publish, Clients* client, int allocate
MQTTAsync_message
*
mm
=
NULL
;
MQTTAsync_message
initialized
=
MQTTAsync_message_initializer
;
int
rc
=
0
;
printf
(
"[%s][%d]
\n
"
,
__FUNCTION__
,
__LINE__
);
FUNC_ENTRY
;
if
((
mm
=
malloc
(
sizeof
(
MQTTAsync_message
)))
==
NULL
)
...
...
common/mqtt/MQTTProtocolClient.c
View file @
a5dd9123
...
...
@@ -304,7 +304,6 @@ int MQTTProtocol_handlePublishes(void* pack, int sock)
Clients
*
client
=
NULL
;
char
*
clientid
=
NULL
;
int
rc
=
TCPSOCKET_COMPLETE
;
printf
(
"[%s][%d]
\n
"
,
__FUNCTION__
,
__LINE__
);
FUNC_ENTRY
;
client
=
(
Clients
*
)(
ListFindItem
(
bstate
->
clients
,
&
sock
,
clientSocketCompare
)
->
content
);
...
...
@@ -313,7 +312,6 @@ int MQTTProtocol_handlePublishes(void* pack, int sock)
publish
->
header
.
bits
.
retain
,
publish
->
payloadlen
,
min
(
20
,
publish
->
payloadlen
),
publish
->
payload
);
if
(
publish
->
header
.
bits
.
qos
==
0
){
printf
(
"[%s][%d]
\n
"
,
__FUNCTION__
,
__LINE__
);
Protocol_processPublication
(
publish
,
client
,
1
);
}
else
if
(
!
Socket_noPendingWrites
(
sock
))
...
...
@@ -324,7 +322,6 @@ int MQTTProtocol_handlePublishes(void* pack, int sock)
rc
=
MQTTPacket_send_puback
(
publish
->
MQTTVersion
,
publish
->
msgId
,
&
client
->
net
,
client
->
clientID
);
/* if we get a socket error from sending the puback, should we ignore the publication? */
Protocol_processPublication
(
publish
,
client
,
1
);
printf
(
"[%s][%d]
\n
"
,
__FUNCTION__
,
__LINE__
);
}
else
if
(
publish
->
header
.
bits
.
qos
==
2
)
{
...
...
@@ -374,7 +371,6 @@ int MQTTProtocol_handlePublishes(void* pack, int sock)
publish1
.
payloadlen
=
m
->
publish
->
payloadlen
;
publish1
.
MQTTVersion
=
m
->
MQTTVersion
;
publish1
.
properties
=
m
->
properties
;
printf
(
"[%s][%d]
\n
"
,
__FUNCTION__
,
__LINE__
);
Protocol_processPublication
(
&
publish1
,
client
,
1
);
ListRemove
(
&
(
state
.
publications
),
m
->
publish
);
...
...
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