This shows you the differences between two versions of the page.
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. | ||
- | < | ||
- | |||
- | ====Example - Connect to NXT==== | ||
- | <code javascript> | ||
- | function OnStart() | ||
- | { | ||
- | nxt = app.CreateNxt(); | ||
- | app.SetMenu( " | ||
- | } | ||
- | |||
- | function OnMenu( name ) | ||
- | { | ||
- | if( name==" | ||
- | nxt.ShowDevices(); | ||
- | } | ||
- | </ |