Skip to content
Snippets Groups Projects
Commit b2a3d086 authored by Leonardo Martinez Hornak's avatar Leonardo Martinez Hornak
Browse files

hardware_interface file added

parent f3934be8
No related branches found
No related tags found
No related merge requests found
#Class that uses bluetooth to communicate with HC-06
#https://github.com/pybluez/pybluez
import bluetooth
class Hardware_interface:
def __init__(self):
nearby_devices = bluetooth.discover_devices(lookup_names=True)
print("Found {} devices.".format(len(nearby_devices)))
for addr, name in nearby_devices:
print(" {} - {}".format(addr, name))
#Print device list to check names used by the system. Used for debugging purposes
#def print_device_list(self):
#def send_data(self):
#def get_data(self):
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment