YUN See Commands send via Bridge

Hi,

for a better understand of the bridge library I would like to see which commands are send from the AVR to the Linux System. For example: In my sketch I make a new Process Curl and add Some Parameters

Process Curl;
 Curl.begin("curl");
 Curl.addParameter("-G 192.168.0.177");
 Curl.addParameter("-d name=value");
 Curl.run();

Now i would like to see what the Linio receives. I made already a SSH Session to the YUN via Putty. Is it possible to see the commands in this SSH session. How?

Greetings

How?

Perhaps by asking in the Yun part of the forum.

Oh I'm very sorry. This is my first post :sweat_smile: Maybe a moderator moves the topic for me?! THX

you can always look at the Process.cpp file (available under libraries/Bridge)

void Process::begin(const String &command) {
  close();
  cmdline = new String(command);
}

void Process::addParameter(const String ¶m) {
  *cmdline += "\xFE";
  *cmdline += param;
}

void Process::runAsynchronously() {
  uint8_t cmd[] = {'R'};
  uint8_t res[2];
  bridge.transfer(cmd, 1, (uint8_t*)cmdline->c_str(), cmdline->length(), res, 2)
...

the communication occurs over the HardwareSerial line; you can probably just look at the YunBridge python scripts to see where it collects the data and how it processes it. https://github.com/arduino/YunBridge/tree/master/bridge

Leuk: Maybe a moderator moves the topic for me?!

Done.

Leuk, currently it's not possible to see which command the linux side receives. However, they are exactly what you typed in the sketch, nothing more