Skip to main content
17-Peridot
May 11, 2019
Solved

How to create a custom channel in PAT(Protocal Adapter Toolkits) ?

  • May 11, 2019
  • 1 reply
  • 860 views

Hi, 

 

The device I need to connect sents out its data via TCP socket request, not websocket request.  My idea is to use PAT to get the data. PAT supports websocket by default,  I can wrap the tcp packet as websocket request ( or any other channel PAT supports ) then sent it to PAT, but the more straightforward way is to create a custom Channel in PAT I think.   

 

But I don't know how to register a custom Channel and how to config it in connector.conf .  Is there a guide for creating custom channel ? 

 

Regards,

Sean

Best answer by tmisner

Hello Sean,

 

Thanks for reaching out on the ThingWorx Developer Community.

 

Looking into this there is a section of the ThingWorx Protocol Adapter Toolkit Developer's Guide which describes the creation of a custom channel. Please refer to the "Developing a Custom Channel" section on Page 46 of the guide.

 

Hopefully this gets you started with what you're looking for.

 

Regards,

Tyler Misner

ThingWorx Technical Support Engineer

1 reply

tmisner16-PearlAnswer
16-Pearl
May 13, 2019

Hello Sean,

 

Thanks for reaching out on the ThingWorx Developer Community.

 

Looking into this there is a section of the ThingWorx Protocol Adapter Toolkit Developer's Guide which describes the creation of a custom channel. Please refer to the "Developing a Custom Channel" section on Page 46 of the guide.

 

Hopefully this gets you started with what you're looking for.

 

Regards,

Tyler Misner

ThingWorx Technical Support Engineer