This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
built_in:nxt_setonconnect [2015/03/11 17:20] madlyr [SetOnConnect] |
built_in:nxt_setonconnect [2015/03/11 17:22] madlyr [Example - Connect / Disconnect to NXT] |
||
---|---|---|---|
Line 22: | Line 22: | ||
} | } | ||
- | function OnConnect( | + | function OnConnect( |
{ | { | ||
- | app.Alert( " | + | app.Alert( " |
} | } | ||
</ | </ | ||
Line 50: | Line 50: | ||
} | } | ||
- | function OnConnect( | + | function OnConnect( |
{ | { | ||
- | if (status) { | + | if (success) { |
app.Alert( " | app.Alert( " | ||
app.SetMenu( " | app.SetMenu( " | ||
Line 61: | Line 61: | ||
} | } | ||
</ | </ | ||
- |