opens a connection to the first available device in the class specified by "devclass".
opens a connection to the particular device defined by spec.
Examplesopen allclose all
Basic Examples (1)
Open a demo device:
Read one item from the device:
Open a random number generator with a specified random seed:
Read from the device:
Open a device after discovering it:
Query the properties of an open device:
Obtain a property value:
Open the default camera attached to your system and capture a frame:
Open a serial port with a specified name:
Connect to a weather station device:
Use the returned DeviceObject to configure its barometer bricklet UID and read in the ambient temperature:
Introduced in 2014