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

 

Moin
Ich schaue mir grade die MQTT Schnittstelle an und brauch ein wenig Starthilfe.

An meinem Stack ist das Master Brick 2.1 mit Wifi 2.0 und dem alten IO-4. tinkerforge-mqtt läuft auf einer ubuntu 20.04 vm und ist frisch über apt installiert. 

tinkerforge_mqtt --ipcon-host 192.168.14.25 --broker-host localhost --global-topic-prefix test --debug --show-payload

Nun Sende ich ein 

{"register": true}

an

test/register/io4_bricklet/h1Q/interrupt

im Debug Log kann ich auch sehen dass, das ankommt und okay scheint

2021-03-03 16:02:59,728 <DEBUG> MQTT bindings: Registered callback interrupt for device h1Q of type io4_bricklet. Will publish messages to test/callback/io4_bricklet/h1Q/interrupt.

Ich Drücke ein Schalter der am IO-4 und würde erwarten das ich im MQTT etwas unter test/callback/io4_bricklet/h1Q/interrupt als Nachricht bekommen.
Aber leide kommt da nichts. Auch im Debug log ist nichts zu sehen.

Liegt das an dem alten IO-4 Bricklet ?

 

Über ein

test/request/io4_bricklet/h1Q/get_value

Bekomme ich Werte, als die Verbindung scheint da zu sein.

Gruß
Philipp

bearbeitet von luxor

Geschrieben

Moin,

Die Callback-Registrierung läuft, wie bei den meisten Bricklets zweischrittig:

  1. Du musst, wie du das schon gemacht hast, den Bindings mitteilen, dass du am Interrupt-Callback interessiert bist. Dabei findet aber noch keine Kommunikation mit dem Bricklet statt.
  2. Danach musst du das Callback auf dem Bricklet aktivieren. Das geht in deinem Fall mit set_interrupt. Wird im Beispiel auch so gemacht.
Geschrieben
  • Autor

Moin
Ahh sorry da hatte ich Tomaten auf den Augen.
Läuft nun.
Danke!

 

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.