2.74
Fork of ExperimentServer by
Diff: ExperimentServer.cpp
- Revision:
- 2:bb4b95f37896
- Parent:
- 1:63635482312f
- Child:
- 3:588db37d9079
--- a/ExperimentServer.cpp Tue Aug 11 21:14:17 2015 +0000 +++ b/ExperimentServer.cpp Tue Aug 11 22:18:35 2015 +0000 @@ -10,6 +10,15 @@ _terminal = &terminal; } +void ExperimentServer::init() { + // default configuration + char ip_address[] = "192.168.1.100"; + char subnet_mask[]= "255.255.255.0"; + char gateway[] = "192.168.1.1"; + int server_port = 11223; + init(ip_address,subnet_mask,gateway, server_port); +} + void ExperimentServer::init(const char * ip_addr, const char * subnet_mask, const char * gateway, unsigned int port) { if(_terminal!=NULL) { _terminal->printf("\n==============================\nStarting Server\n");