Hi,
I have see your attachment. I would like to ask about terms of Redesign, You mean design the same circuit from scratch, or modify that existing circuit, on existing project file you already make? Let's discuss it over chat.
I have used STM32 since 2012, so I'm very familiar with it since most of my project were based on it. from Robotic (in my Portofolio), Industrial, until Military application. I'm familiar with both of it's software and hardware issue. I will use STM32CUBEMX or even Arduino IDE, since it's lot of mqtt resources over Arduino environment.
Let's discuss the details over chat, for case design, I have friends that can do that for you, So I will not work alone, to ensure you get great result.
Best Regards,
Rijal