AnsweredAssumed Answered

Perl SDK - list probes

Question asked by ArronHuk on Nov 17, 2014
Latest reply on Feb 4, 2016 by poulhs

I'm trying to list the probes on a robot using nimNamedRequest but I can't find the data type returned by the command.

 

I have tried the same method as with the getrobots:

 

$cmd = "getrobots"; my($iRet,$retdata) = nimNamedRequest($row->get("addr"),$cmd,$args,10); my $retPDS = Nimbus::smileytongue:DS->new($retdata); for ( my $y=0; my $row2 = $retPDS->getTable("robotlist", PDS_PDS, $y); $y=$y+1 )  {     print "+-" . $row2->get("addr") . "\n"; }

 but i'm not sure what the table name is for the 'probelist' command

 

nimLogSet ("stdout","",5,1);  my $args=Nimbus::smileytongue:DS->new();  $cmd = "probe_list"; my($iRet,$retdata) = nimNamedRequest($robot . "/controller",$cmd,$args,10);  if ( $iRet ) {     print "Error: " . nimError2Txt($iRet) . "\n"; } else {      my $retPDS = Nimbus::smileytongue:DS->new($retdata);       $retPDS->dump();       for ( my $x=0; my $row = $retPDS->getTable("probelist", PDS_PDS, $x); $x=$x+1 )      {           print "+" . $row->get("name") . "\n";      } }

 Any advice? Is there any more documentation where these things are detailed?

 

Thanks

Outcomes