Comments (7)
In fact the device was found, so UDP stuff worked, but then when opening a TCP connection to the devcie it got a timeout ... soo check that tcp connections to the relevant ports are possible between the networks
from tuyapi.
Hey @Apollon77 ! Thanks for the response. Could you further explain what you mean by "soo check that tcp connections to the relevant ports are possible between the networks".
My device and laptop are on different networks, do they have to be on the same one to work?
from tuyapi.
As said: different networks normally have issues with UDP messages because they are normally not routed, but this seems to be no issue for you.
So the library finds a device (via UDP) and then tries a TCP connection to port 6668 and there it gets a timeout ... reason is normally network or the device itself.try if you can ping the device IP from the laptop, try if you con dfo a telnet to the said port ...
from tuyapi.
I tried to ping the device but got this response:
Ping request could not find host x.x.x.x:6668. Please check the name and try again.
I queried the device IP from the API explorer and can verify that the IP provided is correct however, the ping failed.
from tuyapi.
Yeees ... becauzse you can only pong a host and not a port ...
from tuyapi.
Well I tried to ping the IP itself but still the ping failed. This was the response:
Pinging x.x.x.x with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for x.x.x.x:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
from tuyapi.
Then you need to find out why you can not ping the device (if your rother between the networks do not hindert it), but honestly ... I can not give support for such low level network topics ...
from tuyapi.
Related Issues (20)
- Some of my localtuya devices periodically become unavailable HOT 2
- App show "no access". I turn on all permissions when creating new Cloud Project. And I cheched my region. All right. HOT 1
- Implement 3.5 protocol
- Setting brightness overrides color / set multiple properties only applies last HOT 2
- Weird encrypted response from tuya bulb ? HOT 6
- Philips Avent Baby Monitor uses Tuya HOT 3
- Virtual device timed out HOT 1
- Tuya IOT Platform error 1106: permission deny HOT 1
- Cannot install with "npm install codetheweb/tuyapi" HOT 1
- device.get() never returns HOT 9
- tuya-cli get does not work, ECONNRESET error. HOT 1
- 302 status on my TuyaPlatform plugin HOT 1
- `dp-refresh` fire for all devices of the gateway instead of the only one concerned HOT 1
- is there a breaking change at tuya ? HOT 6
- Use Insecure Algorithm AES-ECB as Default Encryption Method HOT 1
- npm install codetheweb/tuyapi Infinite loading occurs during installation.
- virtual ID HOT 1
- Just lost all my Local Tuya devices HOT 1
- Smart plug doesn't return Received data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tuyapi.