Closed SatyamWats closed 11 months ago
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
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?
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 ...
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.
Yeees ... becauzse you can only pong a host and not a port ...
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),
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 ...
Hey @codetheweb I am trying to run this bit of code that I acquire from the 'Data not updating?' section in this project's ReadME.
This code is displaying the following on the console:
And the debug log is this:
If it is necessary then, my laptop (through which I am running the code) and the device are not on the same network. I want to connect with the device and read its data.
Further Information:
Any help would be appreciated!