-
Notifications
You must be signed in to change notification settings - Fork 1
BLE Connect
hcitool lescan
When a device is found you will see something like
34:B1:F7:D5:05:D7 SensorTag
Write the uuid of your tag down to use later on.
cp /usr/lib/bluez-5.30/attrib/gatttool /usr/local/bin
Now we can connect to the BLE device (sensortag) with the gatttool using the uuid of sensortag.
gatttool -b 34:B1:F7:D5:05:D7 -I
This will return something like
[34:B1:F7:D5:05:D7][LE]
Then just write "connect"
The complete operation would look like
root@raspberrypi:/# gatttool -b 34:B1:F7:D5:05:D7 -I
[34:B1:F7:D5:05:D7][LE]> connect
Attempting to connect to 34:B1:F7:D5:05:D7
Connection successful
[34:B1:F7:D5:05:D7][LE]>
Home
##Pre-Req
Software
Hardware
##Protocols
XMPP
AMQP
MQTT
WebSockets
Custom
##Raspberry Pi
Connecting
Configuration
WiFi
Update
###BLE
About
Support
GAP
Broadcast Topology
Connected Topology
GATT
Install
Configure
Connect
Read/Write
###NODEJS
Install
Install
Test
##XSockets
###Hosting
Self-hosted
Configuration
Azure worker role
###Let's build a location based chat
Chat controller
Add name & location
Target specific clients
Install
Test
###Sensor Controller
Basic
Adding state
Broadcast to all
Target specific clients
Confirm enable/disable
Complete
###Monitor Controller
Basic
OnOpened
Adding state
Turn sensor on/off
Complete
###Testing With Putty
Custom protocol
Connecting
Impersonate sensor
Impersonate monitor
###Scale Out
Azure Service Bus
##Suggested Clients
Overview
Web JavaScript
Putty
C-Sharp
TCP-IP
###MQTT
client
publish
##Azure
Hosting & scaling
##Links/Resources
Adafruit
Wikipedia