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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Adding a Thing to a Network

michaele
1-Newbie

Adding a Thing to a Network

Hello,

I am trying to add a Thing to a network programatically,

It is intended in this case to add a parent

var params2 = {

    from : undefined,

    to : SiteName,

    connectionType : undefined

};

  

Networks['CustomerNetwork'].AddConnection(params2);

When tested I get an error about invalid connection type....  I however can not find a resource which lists valid connection types

1 ACCEPTED SOLUTION

Accepted Solutions

I seemed to have found a or the solution...   The connectionType appear to be Parent, Sibling or Child,  though I haven't yet tested all 3, At the very least Sibling works.  And I have been able to add a thing to a network in this way

View solution in original post

2 REPLIES 2

I seemed to have found a or the solution...   The connectionType appear to be Parent, Sibling or Child,  though I haven't yet tested all 3, At the very least Sibling works.  And I have been able to add a thing to a network in this way

paic
1-Newbie
(To:michaele)

Actually you can leave connection type as undefined by not even declaring it in the JSON parameter block, otherwise use contains.

Top Tags