示例#1
0
#Class Libraries for the bluetooth application

import time  #<--- Class Library. 1st party

from bluetooth.ble import BeaconService  #<---3rd Party module

service = BeaconService(
)  #<--- Creating an instance object of the class library.

service.start_advertising(
    "11111111-2222-3333-4444-555555555555", 1, 1, 1,
    200)  #<- Advertise the UUID and different parts for spoofing device

time.sleep(15)
service.stop_advertise()

print("Done.")
示例#2
0
#class libraries for bluetooth application

import time #<-- 1st party class library

from bluetooth.ble import BeaconService #<-- 3rd party module (someone from the internet who created class library)

#instantiate the object 
service = BeaconService() #<-- create an instance object of class library

service.start_advertising("1, 1, 200") #<-- advertise the UUID and different ports for spoofing devices

time.sleep(15) #<--every fifteen seconds 
service.stop_advertise() #<-- stop service 

print("Done ") #<--print when done