AnsweredAssumed Answered

get_text_file

Question asked by Nick.van.Leeuwen on Sep 25, 2015
Latest reply on Sep 25, 2015 by Nick.van.Leeuwen

Hello,

 

I'm trying to get and send a text file over the bus.

For this you get a callback from the controller probe. I just can't figure out how to access it with met .net program.

 

I set up the connection and I can get the list of probes.

 

I did test the callback as well.

 

Does anyone have an example of how to do this? Or just an example of how to send/get a file over the bus using the controller callback?

 

Thanks in advance!

 

I thought this was the way to do it:

NimbusSession contSession = new NimbusSession("<ip>", (int)NimbusPort.Controller);

//creating a PDS

PDS test = new PDS();

                    test.PutString("directory", "<dir>");

                    test.PutString("file", "Bivious_1.txt");

                    test.PutString("buffer_size", "10000");

 

PDS returnValue = contSession.SendMessage(new Request("get_text_file", test));

 

This however fails when the request is send.

 

The request:

PDS probes = contSession.SendMessage(new Request("port_list"));

works however.

Outcomes