the c++ server code that runs on the arduino