def initialize_ble(): global bt # Initialize BLE if we need to if not read_flag: bt = Bt(ble_peripheral_MAC=peripheral_MAC, serial_port=serial_port) bt.ble_setup()
def initialize_ble(): global bt bt = Bt(ble_peripheral_MAC=ble_peripheral_MAC, serial_port=serial_port) bt.ble_setup()