Skip to content

Example of how to get the sensor data - #151

Open
aichase wants to merge 3 commits into
IanHarvey:contribfrom
aichase:contrib
Open

Example of how to get the sensor data#151
aichase wants to merge 3 commits into
IanHarvey:contribfrom
aichase:contrib

Conversation

@aichase

@aichase aichase commented Sep 12, 2016

Copy link
Copy Markdown

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.
Comment thread BleHost.py
try:
srv = per.getServiceByUUID(self.srv_uuid)

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

@jhgorse jhgorse Mar 28, 2019

Copy link
Copy Markdown

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?

Comment thread BleHost.py
import struct
import sys
import time
import sys

@jhgorse jhgorse Mar 28, 2019

Copy link
Copy Markdown

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

jhgorse commented Mar 28, 2019

Copy link
Copy Markdown

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