432 |
u16_t len; |
u16_t len; |
433 |
|
|
434 |
for(i = 0; i < sizeof(struct stats_) / 2; i++) { |
for(i = 0; i < sizeof(struct stats_) / 2; i++) { |
435 |
len = snprintf(buf, sizeof(buffer), "%d", ((u16_t *)&lwip_stats)[i]); |
len = snprintf(buf, sizeof(buf), "%d", ((u16_t *)&lwip_stats)[i]); |
436 |
sendstr(stat_msgs[i], com->conn); |
sendstr(stat_msgs[i], com->conn); |
437 |
netconn_write(com->conn, buf, len, NETCONN_COPY); |
netconn_write(com->conn, buf, len, NETCONN_COPY); |
438 |
sendstr("\n", com->conn); |
sendstr("\n", com->conn); |