The best way to mount electronics to a quadcopter frame will be secure, but it will also isolate the electronics both electrically and physically from the frame. I believe that the best way is to use foam tape and a zip tie. I discuss why I think this is the best way, with photos.