What Iran is demonstrating here is that they can put the squeeze on oil supplies. The wars in the middle east are fundamentally oil centric. It's about who gets to supply oil to the world in exchange for vast amounts of dollars. The ideology gets the headlines usually but if you follow the money, you end up in Riyad, Teheran, Moscow, Washington, and Tel Aviv. Iran is making a very basic point here: we can shut down your oil any time we want.
It's a clever move since it puts everybody on the spot economically. In related news, Trump is planning to meet Rouhani. I'm guessing they have a lot to discuss.