I have a Bluetooth board in which I wan to have the option to power it by a battery or power it by a wall adapter. The power input is a 5mm x2.1 mm plug with two wires (positive and negative). I have both a wall charger and battery available (24v). I want to use a 3 way slide switch (on,off,on). One position would power the board using the wall adapter, One position would be completely off and the last position would power it by the battery. but I am not sure what I need to do, how to wire it or what Rating the switch would need to be. I've found some switches but they are rated for a lot higher voltage than 24v. Would that be okay? Any and all information would be great appreciated.
Link to sample switch shown below https://www.amazon.com/gp/aw/d/B008DFYNX4/ref=mp_s_a_1_14?ie=UTF8&qid=1490924981&sr=8-14&pi=AC_SX236_SY340_QL65&keywords=on+off+on+switch+dpdt
Thank you in advance.