Jump to content

Recommended Posts

Geschrieben

I'm in the process of creating a Python script that allows any sensor bricklet to be connected. To achieve this, I need a list of bircklet IDs, UIDs, name and the functions to register the device and the one to acquire sensor data, something like this:

 

brickletDevices = [

[259, "Ambient Light Bricklet 2.0",BrickletAmbientLight(uid, ipcon), BrickletAmbientLight.get_illuminance()]

 

...

 

]

 

At the moment I have to copy and paste the API functions manually from each bricklet's page which is tedious and time consuming. Is there a list of Python API methods and functions somewhere? The code would enumerate the connected bricklets, compare their ID against the list and print out the name, ID, and the acquired data.

Join the conversation

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

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...