Skip to content

uMQTT_Simple: Return ping result instead of None #1070

@magnus-0

Description

@magnus-0

Suggestion for a small change in line 205 ('section' #PINGRESP in function wait_msg):

return res[0]

instead of:

return None

This allows you to check in your own consumer code that called check_msg() or wait_msg(), that the ping response came by and was valid:

if(oReply == 0xD0): # valid ping response

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions