-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathkwWebRXpp.cpp
More file actions
34 lines (28 loc) · 779 Bytes
/
Copy pathkwWebRXpp.cpp
File metadata and controls
34 lines (28 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "SDRHardware.h"
#include "FFTProcessor.h"
#include "WebSocketServer.h"
#include "ClientManager.h"
#include "global.h"
bool keeprunning = true;
uint32_t StartQRG = start_20m;
uint32_t EndQRG = end_20m;
// maximum nunber of allowed users
const long unsigned int max_users = 20;
int main() {
// Create an object of SDRHardware
SDRHardware& hardware = SDRHardware::getInstance();
bool ret = hardware.init();
if(!ret) {
printf("cannot init SDR hardware\n");
exit(0);
}
FFTProcessor::getInstance().startFFTThread();
WebSocketServer::getInstance().startServer();
ClientManager::getInstance().startProcessing();
// Endless loop
while (true) {
hardware.changeBand();
usleep(100);
}
return 0;
}