Raspberry Pi and Sensor Tag - Part II
In my last post on this subject, I documented how to set up your RPi for the purpose of connecting to a Sensor Tag by TI and then collect data through all its sensors. In this second part of that journey I am going to show you how to accomplish the followings: Find the address of your Sensor Tag Connect manually to validate that Bluetooth works as expected Retrieve data from the sensors Find Mac Address There are a few commands that you will find useful in this quest of dealing with BT devices on Linux based systems. With the following command, you can discover all the devices in discovery mode around you and their mac address. We’re interested into grabbing the one that reports “SensorTag”. Turn on your tag, launch the command and then Ctrl + C to stop as soon you spot it. sudo hcitool lescan Copy the associated address in the clipboard and then run this command sudo hcitool leech <your address here> Read Sensors Now let’s switch on the thermomete