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.

bennysamir

Members
  • Benutzer seit

  • Letzter Besuch

  1. Hallo Zusammen, wie kann ich überprüfen ob ein Bricklet angeschlossen ist, z.B. das DualRelay? In meinem Code mache ich folgendes: IPConnection ipcon = new IPConnection(); // Create IP connection dr = new BrickletDualRelay(UID, ipcon); // Create device object try { ipcon.connect(host, port); } catch (UnknownHostException e) { e.printStackTrace(); JOptionPane.showMessageDialog(null, "Error:" + e.getMessage()); antwort = false; } catch (IOException e) { e.printStackTrace(); JOptionPane.showMessageDialog(null, "Error:" + e.getMessage()); antwort = false; } catch (AlreadyConnectedException e) { e.printStackTrace(); JOptionPane.showMessageDialog(null, "Error:" + e.getMessage()); antwort = false; } return antwort; Die Exception beziehen sich aber nur auf die IP-Connection. Und da der Brick-Daemon lokal auf dem selben Rechner läuft, wird nie eine Exception geworfen. Es wird also immer ein True zurück gegeben, auch wenn kein Tinkerforge Modul angeschlossen ist. Ich kann sogar folgendes ausführen, ohne dass eine Exception geworfen wird: try { dr.setMonoflop(relay, true, ms); } catch (TimeoutException e) { e.printStackTrace(); JOptionPane.showMessageDialog(null, "Error:" + e.getMessage()); } catch (NotConnectedException e) { e.printStackTrace(); JOptionPane.showMessageDialog(null, "Error:" + e.getMessage()); } Kann ich irgendwie abfragen, ob dass oben hinzugefügte Bricklet überhaupt angeschlossen ist?

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.