The fastest and most reliable way to code is via Enet cable + smartphone adapter. Entering modules and coding takes mere seconds. As soon as I saw the speed of it I threw my wifi/bluetooth OBDII adapters in the trash. It's not expensive either, was $49 all in for me. Works with bimmercode and Thor.
https://www.amazon.com/gp/product/B0...?ie=UTF8&psc=1
https://www.amazon.com/gp/product/B0...?ie=UTF8&psc=1