DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:nxt_setonconnected

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
built_in:nxt_setonconnected [2015/03/10 16:30]
madlyr
built_in:nxt_setonconnected [2015/03/11 07:50] (current)
madlyr [Example - Connected to NXT]
Line 9: Line 9:
 { {
   nxt = app.CreateNxt();​   nxt = app.CreateNxt();​
-  nxt.SetOnConnected( ​OnConnect ​);+  nxt.SetOnConnected( ​OnConnected ​);
   app.SetMenu( "​Connect"​ );   app.SetMenu( "​Connect"​ );
 } }
Line 19: Line 19:
 } }
  
-function ​OnConnect()+function ​OnConnected()
 { {
   app.ShowPopup( "​Connected!"​ );   app.ShowPopup( "​Connected!"​ );
 } }
 </​code>​ </​code>​
built_in/nxt_setonconnected.txt ยท Last modified: 2015/03/11 07:50 by madlyr