Appium Bluetooth on/off toggle not working on samsung Tab and also in iPhone/ipad

We require commands/code which works on Samsung devices as well as iphone/ipad for enable or disable Bluetooth.
Kindly provide details