cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

When FileTransfer event from FileRepository thing has triggered?

SOLVED
Highlighted
Marble

When FileTransfer event from FileRepository thing has triggered?

Have a problem with FileTransfer event. I wrote a subscription with code like this:

if(eventData.isComplete === true){
	me.IsComplete = "true";
}

And after I execute some of services, but don't have any result.

I'm confused about that, because i have no idea in which cases event has triggered. 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: When FileTransfer event from FileRepository thing has triggered?

You are subscribed to the FileTransfer event right?

You aren't even getting a FileTransfer start?

View solution in original post

11 REPLIES 11

Re: When FileTransfer event from FileRepository thing has triggered?

I would add some script log logger statements to see what is happening. especially I believe there is a status field you can log out?

Re: When FileTransfer event from FileRepository thing has triggered?

Are you mean a thing property?

Re: When FileTransfer event from FileRepository thing has triggered?

Status should be in the event data or else associated with the transfer job.

Re: When FileTransfer event from FileRepository thing has triggered?

Oh, so just try to log result of status field for see what actually happened?

Re: When FileTransfer event from FileRepository thing has triggered?

Right.

Re: When FileTransfer event from FileRepository thing has triggered?

actually nothing happened in script logs after adding logger.warn to my subscription

Re: When FileTransfer event from FileRepository thing has triggered?

You are subscribed to the FileTransfer event right?

You aren't even getting a FileTransfer start?

View solution in original post

Re: When FileTransfer event from FileRepository thing has triggered?

Oh, I didn't understand right when the event is triggered

Thank you!

Re: When FileTransfer event from FileRepository thing has triggered?

So, this event triggered when we transfer our file from device(remote thing) to repository?