-
Notifications
You must be signed in to change notification settings - Fork 1
BLE ReadWrite
By using gatttool we can now read data with char-read-hnd <hex handle>
, and write data with char-write-cmd <hex handle> <new value>
First we enable the IR-Temperature service by writing 01
to handle 0x24
(0x29
if you have CC2541
).
char-write-cmd 0x24 01
Then we enable read-notification for the IR-Temperature by reading from handle 0x21
(0x25
if you have CC2541
)
char-read-hnd 0x21
Next we enable notification for the IR-Temperature by writing 01:00
to handle 0x22
(0x26
if you have CC2541
)
char-write-cmd 0x22 01:00
We will now start to see IR-Temperature data like
Notification handle = 0x0021 value: 4c 09 24 0b
Notification handle = 0x0021 value: 7c 09 28 0b
Notification handle = 0x0021 value: 6c 09 28 0b
Notification handle = 0x0021 value: 64 09 28 0b
Notification handle = 0x0021 value: 7c 09 28 0b
Notification handle = 0x0021 value: 6c 09 28 0b
Notification handle = 0x0021 value: 88 09 28 0b
Notification handle = 0x0021 value: 70 09 28 0b
Notification handle = 0x0021 value: 70 09 28 0b
Notification handle = 0x0021 value: 84 09 28 0b
And if we disable notifications by writing 00:00
to handle 0x22
(0x26
if you have CC2541
) the information will stop.
char-write-cmd 0x22 00:00
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