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:

With parameters: