cd ~/wifibroadcast
sudo hg pull && hg update wifibroadcast_status_output
make
int main(void) {
int n;
wifibroadcast_rx_status_t *t = status_memory_open();
for(;;) {
printf("\033[2J\r");
printf("Card\tSignal\tReceived Pkg\tWrong CRC cnt\n");
for(n = 0; n < t->wifi_adapter_cnt; ++n) {
printf(" %d :\t%ddBm\t %d\t %d\n", n, \
t->adapter[n].current_signal_dbm, \
t->adapter[n].received_packet_cnt, \
t->adapter[n].wrong_crc_cnt);
}
printf("\nWifibroadcast\n-------------\n");
printf("Wifi cards:\t\t%d\n", t->wifi_adapter_cnt);
printf("Received Blocks:\t%d\n", t->received_block_cnt);
printf("Damaged Blocks:\t\t%d\n", t->damaged_block_cnt);
printf("TX restarts:\t\t%d\n", t->tx_restart_cnt);
usleep(1e5);
}
return 0;
}