Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 22513

Re: Re: Re: Re: Add node (or something) to NCM - NPM

$
0
0

Yes, it is definitely a tad odd. I'm trying to get that cleaned up so SDK users do not have to deal with that. Here's PowerShell code for making the IPAddressGUID value:

 

function ip2guid($ipString) {  $ip = [System.Net.IPAddress]::Parse($ipString)  $src = $ip.GetAddressBytes();  $data = new-object byte[] 16  $src.CopyTo($data, $data.Length - $src.Length)  $dest = new-object byte[] 16  [Array]::Copy($data, 12, $dest, 0, 4)  [Array]::Copy($data, 10, $dest, 4, 2)  [Array]::Copy($data, 8, $dest, 6, 2)  [Array]::Copy($data, 6, $dest, 8, 2)  [Array]::Copy($data, 0, $dest, 10, 6)  return (New-Object Guid (,$dest)).ToString()
}

 

And yes, that's exactly what I mean by "node properties as a json object".


Viewing all articles
Browse latest Browse all 22513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>