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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

When FileTransfer event from FileRepository thing has triggered?

and1
12-Amethyst

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
PaiChung
22-Sapphire I
(To:and1)

You are subscribed to the FileTransfer event right?

You aren't even getting a FileTransfer start?

View solution in original post

11 REPLIES 11
PaiChung
22-Sapphire I
(To:and1)

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?

and1
12-Amethyst
(To:PaiChung)

Are you mean a thing property?

PaiChung
22-Sapphire I
(To:and1)

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

and1
12-Amethyst
(To:PaiChung)

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

PaiChung
22-Sapphire I
(To:and1)

Right.

and1
12-Amethyst
(To:PaiChung)

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

PaiChung
22-Sapphire I
(To:and1)

You are subscribed to the FileTransfer event right?

You aren't even getting a FileTransfer start?

and1
12-Amethyst
(To:PaiChung)

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

Thank you!

and1
12-Amethyst
(To:PaiChung)

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

PaiChung
22-Sapphire I
(To:and1)

Correct, any copy event should trigger that event, Start, Fail, Finish

and1
12-Amethyst
(To:PaiChung)

Oh, okay, thank you.

Top Tags