Cayenne-MQTT-Python icon indicating copy to clipboard operation
Cayenne-MQTT-Python copied to clipboard

very slow data receive

Open binarymaker opened this issue 5 years ago • 4 comments

i new to cayenne, i try to connect python (pc) to cayenne with README file example, its update my dashboard data 10s once. But python debug log data very late approx 100sec.

i using python 3.7

python console late data

Connecting to mqtt.mydevices.com:1883
Connected with result code 0
SUB v1/b69b7900-3428-11ea-84bb-8f71124cfdfb/things/1fd22270-3429-11ea-b301-fd142d6c1e6c/cmd/+

PUB v1/b69b7900-3428-11ea-84bb-8f71124cfdfb/things/1fd22270-3429-11ea-b301-fd142d6c1e6c/sys/model
Python

PUB v1/b69b7900-3428-11ea-84bb-8f71124cfdfb/things/1fd22270-3429-11ea-b301-fd142d6c1e6c/sys/version
1.1.0

PUB v1/b69b7900-3428-11ea-84bb-8f71124cfdfb/things/1fd22270-3429-11ea-b301-fd142d6c1e6c/data/1
temp,c=1

My main issue is dashboard newly added button and slider value response in python(pc) very late 150sec once or sometime take more

How can i solve this issue ?

binarymaker avatar Jan 11 '20 08:01 binarymaker

This issue not faced in python 2.7. what about python 3.7?

binarymaker avatar Jan 13 '20 09:01 binarymaker

Do you mean the command is received with a slight delay after the widget value is changed in the UI? If so that might not just be Python, it could just be a network issue.

If it is a Python 3.7 issue only you might try checking with others in the Cayenne Community forum (http://community.mydevices.com/) and see if they have seen this issue and know of a workaround.

jburhenn avatar Jan 13 '20 18:01 jburhenn

Thanks for your response. I found issue in python 3.8 otherwise python 2.x is working fine

binarymaker avatar Jan 14 '20 10:01 binarymaker

So Python 3.7 & 3.8 have the problem? I'd try posting this issue on http://community.mydevices.com/ if you haven't already and see if someone there has seen it. You might also try an earlier Python 3.x version and see if the problem exists there as well.

jburhenn avatar Jan 14 '20 18:01 jburhenn