mruniversum Posted August 7, 2012 at 08:27 PM Posted August 7, 2012 at 08:27 PM 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. Quote
AuronX Posted August 8, 2012 at 07:32 AM Posted August 8, 2012 at 07:32 AM 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... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.