 void sendError(int type){
 	Serial.write(MAGIC_NUMBER);
 	Serial.write(2); // size = 1 FN + 1 TYPE
-	Serial.write(PUBLISH_MRLCOMM_ERROR);
+	Serial.write(MRLCOMM_ERROR);
 	Serial.write(type);
 }
 

			break;
		}

		case PIN_MODE:{
			pinMode(ioCmd[1], ioCmd[2]);
			break;
		}

			pingdar.step = 1;
			break;
		}

		case SENSOR_ATTACH:{
			int sensorIndex = ioCmd[1];
