Python Forum
Python BLE Scanner not detecting device
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python BLE Scanner not detecting device
#1
I wrote a program that is supposed to recognize a skin-care device via Bluetooth. Upon scanning the skin, the device will send the data of someone's skin to the terminal.

Here is the code that I have so far:

import bluetooth

nearby_devices=bluetooth.discover_devices(lookup_names=True);

for addr, name in nearby_devices:
    print("Name = ", name)
    print("Address = ", addr)
This is just the first part of the project.

Here is the problem:
The first time I ran the code, the program did read a device, but it was not the address, nor name of the skin-reading device. The second time I ran it, the program DID NOT detect any devices at all.

I turned on the skincare device, and the Bluetooth was active, so my "Bluetooth and other device settings" could read it. Oddly, the program that I wrote did not recognize it at all.

Did I miss something?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  iterating and detecting the last Skaperen 3 1,066 Oct-01-2022, 05:23 AM
Last Post: Gribouillis
  Use Barcode Scanner With Python Extra 2 1,588 Jul-14-2022, 09:52 AM
Last Post: Gribouillis
  Detecting float or int in a string Clunk_Head 15 4,463 May-26-2022, 11:39 PM
Last Post: Pedroski55
  port scanner Than999 0 1,193 Feb-01-2022, 12:24 PM
Last Post: Than999
  module detecting if imported vs not Skaperen 1 1,666 Nov-19-2021, 07:43 AM
Last Post: Yoriz
  detecting a generstor passed to a funtion Skaperen 9 3,567 Sep-23-2021, 01:29 AM
Last Post: Skaperen
  Sending string commands from Python to a bluetooth device Rovelin 13 9,434 Aug-31-2021, 06:40 PM
Last Post: deanhystad
  Real Time Audio Processing with Python Sound-Device not working Slartybartfast 2 3,954 Mar-14-2021, 07:20 PM
Last Post: Slartybartfast
  Windows Python Memory Scanner Awesometech 1 21,130 Oct-14-2020, 07:44 AM
Last Post: badengagen
  waiting for barcode scanner output, while main program continues to run lightframe109 3 4,638 Sep-03-2020, 02:19 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020