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 TF Team,

 

ich versuche gerade die Signale einer Fernbedienung am RemoteSwitch 2.0 zu empfangen. Ich nutze einen REMOTE_SWITCH_V2_CALLBACK_REMOTE_STATUS_B (in C++).

Wenn der Callback länger als 0,6 Sekunden nicht gerufen wurde schreibt er "Switch B", wenn der öfter gerufen wird "Repeat Switch B".

 

Im Grunde funktioniert das auch, aber das "Problem" kommt beim Statuswechsel von ein nach aus oder aus nach ein.

Wenn länger keine Taste gedrückt wurde und dann z.b. von ein nach aus, dann ist das erste Event immer noch ein "ein".

 

In dem Beispiel hier, der Schalter war "ein", jetzt drücke ich "aus" und das erste Event ist dennoch erst ein "ein" (Zeile 01) und direkt danach über den Repeat kommt der "aus".

 

01  2019-09-22 17:41:32.746270  Switch B 27172244 unit 0 to 1
02  2019-09-22 17:41:32.986297  Repeat switch B 27172244 unit 0 to 0
03  2019-09-22 17:41:33.064389  Repeat switch B 27172244 unit 0 to 0
04  2019-09-22 17:41:36.231794  Switch B 27172244 unit 0 to 0
05  2019-09-22 17:41:36.471759  Repeat switch B 27172244 unit 0 to 1
06  2019-09-22 17:41:36.553723  Repeat switch B 27172244 unit 0 to 1
07  2019-09-22 17:41:36.632777  Repeat switch B 27172244 unit 0 to 1
08  2019-09-22 17:41:55.548308  Switch B 27172244 unit 0 to 1
09  2019-09-22 17:41:55.629823  Repeat switch B 27172244 unit 0 to 1
10  2019-09-22 17:41:55.707598  Repeat switch B 27172244 unit 0 to 1
11  2019-09-22 17:41:55.786624  Repeat switch B 27172244 unit 0 to 1
12  2019-09-22 17:41:55.868673  Repeat switch B 27172244 unit 0 to 1
13  2019-09-22 17:41:58.920037  Switch B 27172244 unit 0 to 1
14  2019-09-22 17:41:59.160091  Repeat switch B 27172244 unit 0 to 0
15  2019-09-22 17:41:59.238909  Repeat switch B 27172244 unit 0 to 0
16  2019-09-22 17:42:03.272009  Switch B 27172244 unit 0 to 0

 

Dann drücke ich "ein", aber in Zeile 04 kommt erstmal wieder ein "aus" und erst im Repeat ein "ein" und so setzt sich das fort.

 

Irgendeine Idee woran das liegen könnte?

Sieht immer so aus, als wäre das 1. Event der aktuelle Zustand und danach erst der Zustand der Taste entsprechend.

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.