DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:nxt_checkconnection

Differences

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

Link to this comparison view

built_in:nxt_checkconnection [2015/03/09 15:47]
octazid created
built_in:nxt_checkconnection [2015/03/11 07:41] (current)
madlyr
Line 3: Line 3:
 The **CheckConnection** function returns true if the NXT brick is currently connected to the phone/​tablet but it will show a popup warning message and return **false** if no brick is currently connected. The **CheckConnection** function returns true if the NXT brick is currently connected to the phone/​tablet but it will show a popup warning message and return **false** if no brick is currently connected.
  
-This function is useful if you want to warn the user that they have no connection ​when they start pressing buttons etc in your program.+This function is useful if you want to warn the user that he/​she ​have no connection.
 <​code>​ok = nxt.CheckConnection();</​code>​ <​code>​ok = nxt.CheckConnection();</​code>​
    
built_in/nxt_checkconnection.txt ยท Last modified: 2015/03/11 07:41 by madlyr