Exemplo n.º 1
0
 def __init__(self, bus, index):
     Advertisement.__init__(self, bus, index, 'peripheral')
     self.add_service_uuid('180D')
     self.add_service_uuid('180F')
     # self.add_manufacturer_data(0xffff, [0x00, 0x01, 0x02, 0x03, 0x04])
     self.add_service_data('9999', [0x00, 0x01, 0x02, 0x03, 0x04])
     self.add_local_name('Rover')
     self.include_tx_power = True
Exemplo n.º 2
0
 def __init__(self, index):
     Advertisement.__init__(self, index, "peripheral")
     variant = os.getenv('VARIANT')
     macAddr = open("/sys/class/net/eth0/address").readline()\
         .strip().replace(":", "")[-6:].upper()
     localName = "Nebra %s Hotspot %s" % (variant, macAddr)
     self.add_local_name(localName)
     self.include_tx_power = True
     self.service_uuids = ["0fda92b2-44a2-4af2-84f5-fa682baa2b8d"]
Exemplo n.º 3
0
 def __init__(self, index):
     Advertisement.__init__(self, index, "peripheral")
     self.add_local_name("Smartfire-1")
     self.include_tx_power = True
Exemplo n.º 4
0
 def __init__(self, index):
     Advertisement.__init__(self, index, "peripheral")
     self.add_local_name("Thermometer")
     self.include_tx_power = True
Exemplo n.º 5
0
 def __init__(self, index):
     Advertisement.__init__(self, index, "peripheral")
     self.add_local_name("IoT Murdoch")
     self.include_tx_power = True
Exemplo n.º 6
0
 def __init__(self, bus, index):
     Advertisement.__init__(self, bus, index, 'peripheral')
     self.add_service_uuid(UART_SERVICE_UUID)
     self.add_local_name(LOCAL_NAME)
     self.include_tx_power = True
Exemplo n.º 7
0
 def __init__(self, index):
     Advertisement.__init__(self, index, "peripheral")
     self.add_local_name("Edge Device IOT")
     self.include_tx_power = True
Exemplo n.º 8
0
 def __init__(self, index):
     Advertisement.__init__(self, index, "peripheral")
     self.add_local_name("Gener-8")
     self.add_manufacturer_data(0xFFFF, "Gener-8 Inc.")
     self.include_tx_power = True
Exemplo n.º 9
0
 def __init__(self, index):
     Advertisement.__init__(self, index, "peripheral")
     self.add_local_name(hostname)
     self.add_local_sn(hostname)
     self.include_tx_power = True
Exemplo n.º 10
0
 def __init__(self, index):
     Advertisement.__init__(self, index, "peripheral")
     self.add_local_name("Sense Hat Environment")
     self.include_tx_power = True
Exemplo n.º 11
0
 def __init__(self, index):
     Advertisement.__init__(self, index, "peripheral")
     self.add_local_name("tankopi")
     self.add_service_uuid(SVC_UUID);
     self.include_tx_power = True