Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of how to get the sensor data #151

Open
wants to merge 3 commits into
base: contrib
Choose a base branch
from

Conversation

chaseleecn
Copy link

usage: python BleHost.py <your sensor address> <random or public>
This program will continually trying to connect the ble sensor, and get the data.
Remember to replace the uuid first.

Chason added 3 commits September 12, 2016 11:00
usage: python BleHost.py <your sensor address>  <random or public>
this program will continually trying to connect the ble sensor, and get
the data.
remember to replace the uuid first.
try:
srv = per.getServiceByUUID(self.srv_uuid)

chrc = srv.getCharacteristics(self.acc_uuid)[0]
Copy link

@jhgorse jhgorse Mar 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is acc_uuid defined?

import struct
import sys
import time
import sys
Copy link

@jhgorse jhgorse Mar 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant import of sys.

@jhgorse
Copy link

jhgorse commented Mar 28, 2019

Remove the threading. It gets in the way of the demonstration of the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants