check firmware version and api version upon server startup

This commit is contained in:
Dhanya Maliakal
2016-07-22 15:26:26 +02:00
parent f4a7a5a032
commit ac7063a1a5
7 changed files with 63 additions and 30 deletions

View File

@ -23,12 +23,12 @@ int main(int argc, char *argv[]){
int retval=OK;
int sd, fd;
checkFirmwareCompatibility();
#ifdef STOP_SERVER
char cmd[100];
#endif
if (argc==1) {
checkFirmwareCompatibility();
//#endif
portno = DEFAULT_PORTNO;
printf("opening control server on port %d\n",portno );