How on_connect() called in example temperature_conversion.cpp
17 views
Skip to first unread message
Ahmed Rafiq
unread,
Apr 10, 2016, 9:51:33 AM4/10/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MQTT
I didn't understood how the example code for temperature_conversion, the member function on_connect is working ?
from main, it called loop() through object, but while I'm checking the source code for loop(), I didn't found anything that calling the on_connect().
could anybody please explain.
Thanks in advance.
Roger Light
unread,
Apr 10, 2016, 4:00:58 PM4/10/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mq...@googlegroups.com
Hi Ahmed,
When the broker sends a CONNACK message to the client, the network
processing code recognises it and calls on_connect(). Try looking in
lib/read_handle_connect.c