Skip to content

Convenience method to join the communications thread#2

Closed
reimerix wants to merge 1 commit intomasterfrom
reimerix/join-comm-thread
Closed

Convenience method to join the communications thread#2
reimerix wants to merge 1 commit intomasterfrom
reimerix/join-comm-thread

Conversation

@reimerix
Copy link
Copy Markdown

@reimerix reimerix commented Feb 17, 2020

This PR adds a convenience method to the Client class to join the communications thread, usage scenario as follows:

def msg_callback(msg, from_device):
    pass

ixcom_client = ixcom.Client(192.168.1.30, port=3001)
ixcom_client.open_last_free_channel()
ixcom_client.clear_all()
ixcom_client.add_log_with_rate(ixcom.data.WHEELDATA_Payload.message_id, 10.0)
ixcom_client.add_callback(msg_callback)
ixcom_client.join_comm_thread()

@reimerix reimerix closed this Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant