User Activity

Is there a way to prevent sleep mode on MX340? Or is this not what would cause the printer to stop working via wi-fi?