This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
built_in:nxt_setonconnected [2015/03/09 16:22] octazid created |
built_in:nxt_setonconnected [2015/03/11 15:50] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== SetOnConnected ====== | ====== SetOnConnected ====== | ||
- | The **SetOnConnected** function allows you to set the name of a function that you would like to be called when the NXT has been successfully connected via Bluetooth. | + | The **SetOnConnected** function allows you to set the name of a function that you would like to be called when the NXT has been successfully connected via Bluetooth.\\ Do not use SetOnConnect while using SetOnConnected! |
< | < | ||
Line 9: | Line 9: | ||
{ | { | ||
nxt = app.CreateNxt(); | nxt = app.CreateNxt(); | ||
- | nxt.SetOnConnected( | + | nxt.SetOnConnected( |
app.SetMenu( " | app.SetMenu( " | ||
} | } | ||
Line 19: | Line 19: | ||
} | } | ||
- | function | + | function |
{ | { | ||
app.ShowPopup( " | app.ShowPopup( " | ||
} | } | ||
</ | </ |