Firmware development for Mesh-to-LPWAN gateway