Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

Hallo zusammen

 

ich versuche gerade das AmbientLightV2-Bricklet in PHP zum laufen zu bekommen. Leider wirfst selbst das einfache Beispiel folgende Warnung und gibt danach nur "Illuminance: 0 Lux" aus

 

Warning: unpack(): Type V: not enough input, need 4, have 2 in /.../Tinkerforge/BrickletAmbientLightV2.php on line 181

 

Ich benutzt MAMP als PHP Webserver und habe bereis verschiedene PHP Versionen versucht.

 

Kennt jemand das Problem oder hat einen Tipp :)?

 

Geschrieben
  • Autor

ja, die richtige UID ist eingetragen. Die einfachen Beispiele für den Barometer/Temperatur Bricklet funktionieren auch. Nur der AmbientLight mag nicht.

Geschrieben

Hast du vielleicht ein altes Ambient Light Bricklet und versuchst das Beispiel für das neue Ambient Light 2.0 Bricklet zu verwenden?

 

Das würde zur Fehlermeldung passen. Das alte Bricklet hat die Helligkeit als uint16 (2 Byte) übertragen. Das neue Bricklet überträgt die Helligkeit als uint32 (4 Byte). Das passt zur Fehlermeldung, dass 4 Byte erwartet wurden, aber nur 2 Byte empfangen wurden.

 

In dem Fall muss du einfach nur, dass Beispiel für das alte Ambient Light Bricklet nehmen: http://www.tinkerforge.com/de/doc/Software/Bricklets/AmbientLight_Bricklet_PHP.html#simple

Geschrieben
  • Autor

argh. Genau das ware es natürlich. Hab nur flüchtig auf die Platine geschaut und die 1.2 als 2.0 gedeutet ;)

 

Lieben Dank für die flotte Hilfe!

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...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.