Skip to content

How to quickly catch errors? #544

Closed Answered by jasonacox
RYoder97 asked this question in Q&A
Oct 13, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @RYoder97 , try turning on debug and setting the timeout settings via initialization:

import tinytuya

tinytuya.set_debug(True)

device = tinytuya.Device("id", "x.x.x.x", "key", version="3.3",
     connection_timeout=1, connection_retry_limit=0, connection_retry_delay=0)

print(device.status())

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@RYoder97
Comment options

@uzlonewolf
Comment options

@RYoder97
Comment options

Answer selected by RYoder97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants