User Tools

Site Tools


built_in:nxt_ispaired

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

built_in:nxt_ispaired [2015/03/23 07:49]
madlyr created
built_in:nxt_ispaired [2015/03/23 16:11]
Line 1: Line 1:
-====== IsPaired ====== 
  
-The **IsPaired** function checks if Bluetooth device with **name** is on the paired devices list of our phone/tablet. Returns "true" or "false". 
-<code>paired = nxt.IsPaired( name );</code> 
- 
- 
-====Example==== 
-<code javascript> 
-function OnStart() 
-{ 
-  nxt = app.CreateNxt(); 
-  deviceName = "myNXTbrick"; 
-  paired = nxt.IsPaired( deviceName ); 
-  app.Alert( "Bluetooth device " + deviceName + (paired ? "is " : "is not ") + "paired." ); 
- 
-</code> 
built_in/nxt_ispaired.txt ยท Last modified: 2015/03/23 16:11 (external edit)