active()
Use this function to set or query whether BLE functionality is enabled on the XBee device. This method is equivalent to the ATBT command.
ble.active([mode])
Without parameters:
- Returns True if BLE is enabled on the XBee device (ATBT = 1).
- Returns False if BLE is disabled on the XBee device (ATBT = 0).
With parameters:
- True: Enable BLE functionality.
- False: Disable BLE functionality.