Yun 17.11 Reboot prerelease

I'll explore a new way,
I've just discovered I could use ttyATH0

with this sketch :

void setup() {
// Open serial communications and wait for port to open:
Serial.begin(57600);
Serial1.begin(250000);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
while (!Serial1) {
; // wait for serial port to connect. Needed for native USB port only
}

Serial.println("Goodnight moon!");
Serial1.println("Goodnight moon!");
}

void loop() { // run over and over
if (Serial1.available()) {
Serial.write(Serial1.read());
}
if (Serial.available()) {
Serial1.write(Serial.read());
}
}

with 2 linux terminal, in the first, i use

root@Arduino:~# cat /dev/ttyATH0

& in the other, i write with :

root@Arduino:~# echo ok > /dev/ttyATH0
root@Arduino:~# echo test > /dev/ttyATH0

Is there a bidirectional sketch that map directly Arduino pins & fonction (pinmode, analogRead, digitalWrite...), so I could write something like a JSON :

echo {"D13":1,"PWM9":45} > /dev/ttyATH0 ???

I will explore with #include <ArduinoJson.h>
?