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.

API gibt bei Absturz des Master Bricks keine Fehlermeldung zurück

Featured Replies

Geschrieben

Mir ist bei der C - Api ( andere hab ich nicht probiert) aufgefallen das ein hängender/abgestürzter Master Brick nicht erkannt werden kann. Jeder Funktionsaufruf kommt mit S_OK zurück.

 

Könnte da nachgebessert werden ? Wenn das Ding nicht mehr reagiert muss man das irgendwie mit bekommen können.

Geschrieben

Bei Nachrichten die nichts zurück geben ist das schwierig, bei Nachrichten die etwas zurück geben bekommst du einen Timeout!

 

Wenn du wissen möchtest ob ein Master noch ansprechbar ist könntest du also z.B. einmal get_voltage() aufrufen.

Geschrieben
  • Autor

Ich hatte "lcd_16x2_write_line" aufgerufen, wie gesagt, kam S_OK zurück, dabei war der Brick zu dem Zeitpunkt schon tod.

Geschrieben

Wie gesagt, wenn eine Funktion etwas zurück gibt bekommst du ein Timeout (falls keine Antwort kommt).

 

Wenn eine Funktion nichts zurück gibt (z.B. lcd_16x2_write_line) gibt es im Protokoll was wir auf der unteren Ebene Sprechen im Moment keine Möglichkeit einen Fehler zu bekommen.

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.