     digitalWrite(port, LOW);
     val = 0;
   }
-  return ioReturnJson("OK", port, val);
+  return okIoJson("OK", port, val);
 }
 
 


String aiRead(uint8_t port){
  int val = analogRead(port);
  return ioReturnJson("OK", port, val);
}

String ioReturnJson(String msg, int port, int val){
  String body = wrapDq("msg") + ":"+wrapDq(msg)
    + "," + wrapDq("port") + ":" + String(port)
    + "," + wrapDq("val") + ":" + String(val);
  return wraped('{', body, '}');
}


/*


String diRead(uint8_t port){
  int val = digitalRead(port);
  return okIoJson("OK", port, val);
}

/*
