User Tools

Site Tools


built_in:nxt_showdevices

Differences

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

Link to this comparison view

built_in:nxt_showdevices [2015/03/09 16:23]
octazid created
built_in:nxt_showdevices [2015/03/11 05:07]
Line 1: Line 1:
-====== ShowDevices ====== 
  
-The **ShowDevices** function shows the user a dialog box that contains a list of NXT bricks which are paired with the phone. The user can then select the brick to connect to via Bluetooth. 
-<code>nxt.ShowDevices( file, repeat );</code> 
- 
-====Example - Connect to NXT==== 
-<code javascript> 
-function OnStart() 
-{ 
-  nxt = app.CreateNxt(); 
-  app.SetMenu( "Connect" ); 
-} 
- 
-function OnMenu( name ) 
-{ 
-  if( name=="Connect" ) 
-    nxt.ShowDevices(); 
-} 
-</code> 
built_in/nxt_showdevices.txt ยท Last modified: 2015/03/11 05:07 (external edit)