Skip to main content
1-Visitor
March 5, 2018
Question

How to send message from ThingWorx server to edge device?

  • March 5, 2018
  • 1 reply
  • 1687 views

Hi,

I want to send message from ThingWrox server to device(Java sdk), so far I don't get any idea?

 

I've tried DataChange event and subscription with a java sdk , but have not worked out by this way. The SDK side can't be triggered when RemoteThing change property on ThingWrox server

 

Any way, I want to know is there a best practise about this and how it can be done?

 

Thanks in advance.

1 reply

1-Visitor
March 7, 2018

Hi Gavin,

 

If I correct understood, you want to do something on gateway whenever you want. 

 

I did something like that I implemented SDK on gateway and generate services on composer. When I try to call this service via rest api, gateway function triggers. You can send message from device/web app/mobile app etc like this. Just implement service function on gateway and try to call this function via api. 

 

Note: Of course, thing template must be remote thing. 🙂

 

Regards,

Gavin21-VisitorAuthor
1-Visitor
March 23, 2018

Hi burak
Thanks for you solution, I've worked this out by using remote property and service.