tsathishkumar / MySController-rs

Controller for MySensors, exposes WoT APIs for the sensors. It supports OTA firmware updates, and also acts as proxy for all requests.
GNU Affero General Public License v3.0
20 stars 9 forks source link

Data is received multiple times? #35

Open flatsiedatsie opened 5 years ago

flatsiedatsie commented 5 years ago

The code below shows what happens after a single "requestTime();"

Hello world!
Connected to gateway!
**Received time: 1544457418
Received time: 15:56
Received time: 1544457418
Received time: 15:56
Received time: 1544457418
Received time: 15:56
Received time: 1544457418
Received time: 15:56
Received time: 1544457418
Received time: 15:56
Received time: 1544457418
Received time: 15:56**
-1-2Received time: 15:57
Loop number and motion sensor movements: 1 -> 2
Sending motion total:2
Connection is ok
__Incoming change for child: 1

__Incoming change for child: 1

__Incoming change for child: 1

__Incoming change for child: 1

__Incoming change for child: 1

__Incoming change for child: 1

__Incoming change for child: 1

Similarly, as you can see above, there are 7 incoming messages for child 1. This child is a temperature sensor value, so there should be no reason for it to be receiving messages.

flatsiedatsie commented 5 years ago

It might be at my end. I see a lot of repetition on the network:

Dec 10 17:35:41 DEBUG GWT:RFC:C=0,MSG=0;0;3;0;18;PING
Dec 10 17:35:43 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:25
Dec 10 17:35:43 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:25
Dec 10 17:35:43 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:25
Dec 10 17:35:43 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:25
Dec 10 17:35:43 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:25
Dec 10 17:35:43 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:25
Dec 10 17:35:43 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:25
Dec 10 17:35:48 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:25
Dec 10 17:35:51 DEBUG GWT:RFC:C=0,MSG=0;0;3;0;18;PING
Dec 10 17:35:53 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:26
Dec 10 17:35:58 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:26
Dec 10 17:35:58 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:26
Dec 10 17:35:58 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:26
Dec 10 17:35:58 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:26
Dec 10 17:35:58 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:26
Dec 10 17:35:58 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:26
Dec 10 17:36:01 DEBUG GWT:RFC:C=0,MSG=0;0;3;0;18;PING
Dec 10 17:36:03 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:27
Dec 10 17:36:03 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:27
Dec 10 17:36:08 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:27
Dec 10 17:36:08 DEBUG TSF:MSG:READ,15-14-0,s=1,c=1,t=0,pt=2,l=2,sg=0:47
Dec 10 17:36:11 DEBUG GWT:RFC:C=0,MSG=0;255;3;0;2;0;0;3;0;18;PING
Dec 10 17:36:13 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:27
Dec 10 17:36:13 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:27
Dec 10 17:36:13 DEBUG TSF:MSG:READ,15-14-0,s=3,c=1,t=3,pt=1,l=1,sg=0:27
flatsiedatsie commented 5 years ago

U suspect I created a loop somewhere..