Home / Companies / PubNub / Blog / Post Details
Content Deep Dive

Tessel iBeacon Tutorial: Building the Detector (Pt 2)

Blog post from PubNub

Post Details
Company
Date Published
Author
Michael Carroll
Word Count
1,816
Language
English
Hacker News Points
-
Summary

In the second part of the tutorial series on building smarter Tessel iBeacon technology, the focus is on creating the detector application that identifies signals from an emitter using Tessel boards and Bluetooth Low Energy (BLE) modules. The tutorial explains how to set up the Tessel board with the necessary modules and how to use the PubNub JavaScript module to enable two-way communication between the iBeacon and users. It details the process of calculating the distance to a beacon using the AltBeacon algorithm and categorizing it into "Immediate," "Near," and "Far" proximity zones. The tutorial also covers scanning for BLE signals, filtering out non-beacon signals, and handling PubNub channel subscriptions to receive messages when close to a beacon. It emphasizes the importance of managing the Tessel's processing load to prevent timeouts and guides users on obtaining PubNub keys for channel communication.