Jump to content

Recommended Posts

Posted

Hi,

 

tue ich nicht normalerweise bei PHP eine funktion so aufrufen und den wert zuweisen?

$current_state=array();
$current_state=getState();

 

[edit]

ich habe das codebeispiel von TF benutzt. das 10malige switchen funktioniert einwandfrei.

Posted

Also wenn dein getState das vom Dual Relay ist, dann sollte der Aufruf in etwa so aussehen:

$current_state = $myDualRelayBricklet->getState();

 

Du musst die Funktion ja auf einem bestimmten Bricklet aufrufen...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...