 int crawlStr(char *result, int i, String inputString, char stopChar) {
   const unsigned int len = inputString.length();
   int j = 0;
-  //Serial.println(len, DEC);
-  //Serial.println(i, DEC);
   while (i < len) {
     if (inputString[i] == stopChar) {
       result[j] = '\0';

  }
}

void debug(String out) {
  Serial.println(out);
}

void debugAllNodes() {
  int i;
  Serial.println("all nodes:");
  for (i = 0; i < 10; i++) {
    if (nodes[i].name[0]) {
      Serial.print(i);

      Serial.println("");
    }
  }
  Serial.println(EDGES_HBG);
  for (i = 0; i < 10; i++) {
    if (edges[i].type[0]) {
      Serial.print(i);
      Serial.print("|");
      Serial.print(edges[i].from);
      Serial.print("|");
      Serial.print(edges[i].to);
      Serial.print("|");
      Serial.print(edges[i].type);
      Serial.print("|");
      Serial.print(edges[i].name);
      Serial.print("|");
      Serial.print(edges[i].guard);
      Serial.println("");
    }
  }
  Serial.println(END_HBG);
}
