   temp_msg, // 005
   heater_msg, // 006
   setPIDonoff_msg, // 007
+  getINOUTSET_msg, // 008
   NULL
 };
 

  kCOMM_ERROR = 000, 
  kSTATUS = 001,
  kTEMPERATURE = 002, 
  kERR = 003,
  kSEND_CMDS_END, // Mustnt delete this line
};

#define STATMSG "1,"
#define ENDMSG ";\r\n"

// Commands we send from the PC and want to recieve on the Arduino.

  }
}

void setPIDonoff_msg() {
  Serial << STATMSG << "Set PID on off msg received" << ENDMSG;
  while (cmdMessenger.available()) {
    char buf[350] = {'\0'};
    cmdMessenger.copyString(buf, 350);
    if (strncmp(buf, "1", 1) == 0) {
      temperaturePID.SetMode(AUTOMATIC);
    }
    else {
      temperaturePID.SetMode(MANUAL);
    }
  }
}

void getINOUTSET_msg() {
  Serial << STATMSG << "Get Input Output Setpoint msg received" << ENDMSG;
  Serial << INOUTSETMSG << temperature << "," << dutyCycle << "," \
	 << setpoint << ENDMSG;
}
  

void arduino_ready() {
  // In response to ping. We just send a throw-away ack to say "im alive"
