full code conversion of wifi backpack to module, not tested yet but compiles