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

Habe zwei Fragen zum Humidity Bricklet :

 

Firmware V.2.0.0

Java Tinkerforge-2.1.5 (Maven)

 

Gibt es einen Grund, dass die Argumente für min und max bei

setHumidityCallbackThreshold(option, min, max)

vom Typ 'short' sind, obwohl es in der Dok 'int' sind?

 

 

Dann ist mir noch was aufgefallen:

Wenn ich die getDebouncePeriod() aufrufe kriege stets eine...

com.tinkerforge.TimeoutException: Did not receive response in time for function ID 12

at com.tinkerforge.DeviceBase.sendRequest(DeviceBase.java:169)

at com.tinkerforge.BrickletHumidity.getDebouncePeriod(BrickletHumidity.java:438)

 

Habe ich da was falsch verstanden, oder ist da ein kleiner Bug im Spiel?

 

Quantasy

Geschrieben

Das passt zu dem Thema, wo mir was Ähnliches in C++ aufgefallen ist:

http://www.tinkerunity.org/forum/index.php/topic,3254.msg20051.html#msg20051

 

Laut TCP/IP-API http://www.tinkerforge.com/de/doc/Software/Bricklets/Humidity_Bricklet_TCPIP.html#BrickletHumidity.set_humidity_callback_threshold sind min/max jeweils "unsigned int", den gibt es in Java aber nicht, sondern nur int und short. Das ist hier nicht ganz einheitlich mit den Typen (müsste eher überall "int" sein, um den positiven Wertebereich bis 2^16 abzudecken).

 

Den Timeout erklärt das nicht.

Geschrieben

short vs int: remotecontrol hat recht, da ist uns was durcheinander geraten. Das hätte schon immer int sein müssen. In der Doku ist das schon korrigiert. In den Bindings wird das mit der nächsten Release auch int werden.

 

Die häufigste Ursache für eine TimeoutException ist, dass du nicht die UID deines Bricklets verwendest und daruch keine Antwort erhältst.

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.