msaunby / ble-sensor-pi Goto Github PK
View Code? Open in Web Editor NEWSimple example for SensorTag with RaspberryPi a Bluetooth Low Engery (BLE GATT) device
Simple example for SensorTag with RaspberryPi a Bluetooth Low Engery (BLE GATT) device
This is all messed up when I clone it (using ubuntu 13.10 x64)
The formatting is wrong, are some indents spaces and others tabs? It looks correct on screen but if I copy and paste from the 'raw' window here, I get:
File "sensortag.py", line 44
self.con.expect('Connection successful.*[LE]>')
^
IndentationError: unindent does not match any outer indentation level
Helllo Mike,
this is a cheap shot to make you look at http://e2e.ti.com/support/low_power_rf/f/538/p/311948/1097759.aspx
I cannot get the humidity sensor to work with my SensorTag, using either gatttool or sensortag.py. Could you please verify that it works on your SensorTag using both sensortag.py and show me a log of how you do it manually using gatttool?
If you could get it to work, I'd assume that mine is broken and just order a new one.
Thanks for your help!
ben
How can one set the frequency at which notifications are sent?
http://processors.wiki.ti.com/index.php/SensorTag_User_Guide mentions update rates of e.g. 100ms. What I see using sensortag.py is much slower. Also if I only turn on one sensor, e.g. barometric.
Gatttool now changes to a blue prompt to show connection. Validation of a connection should be made by some other method, than "self.con.expect('[CON].*>')". Gatttool patch information is here: http://www.spinics.net/lists/linux-bluetooth/msg34736.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.