Brightsign Object Reference Manual (FW 5.1) Instrukcja Użytkownika Strona 166

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 341
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 165
158
roStorageHotplug
This object provides roStorageAttached messages when storage devices appear and roStorageDetached messages
when storage devices disappear. Currently, only external USB devices are supported, and there is no way to poll for
media.
Object Creation: The roStorageHotplug object is created with no parameters.
CreateObject("roStorageHotplug")
Interfaces: ifSetMessagePort
The ifSetMessagePort interface provides the following:
SetPort(a As Object)
In order to avoid race conditions at startup, you should check for any storage devices that might have existed prior to the
message port being set. We recommend doing this after the object is created and the message port is set, but before
instructing the script to wait for any events.
Example
Sub Main()
mp = CreateObject("roMessagePort")
sh = CreateObject("roStorageHotplug")
gpio = CreateObject("roControlPort", "brightsign")
sh.SetPort(mp)
gpio.SetPort(mp)
Przeglądanie stron 165
1 2 ... 161 162 163 164 165 166 167 168 169 170 171 ... 340 341

Komentarze do niniejszej Instrukcji

Brak uwag