Change baud rate in loop

Good for you. Never having used, or needed to use, Software Serial myself, I won't bother asking why you can do it yet so many others on this forum have nothing but grief, and I don't think it is a good idea to put a newbie behind the 8-ball. And I did say "not likely to..."

I understand that there are versions of software serial other than "Software serial" that perform better, but I don't know if they might be up to the job in hand.

dev?