Struct tinkerforge::ip_connection::EnumerateResponse
source · pub struct EnumerateResponse {
pub uid: String,
pub connected_uid: String,
pub position: char,
pub hardware_version: [u8; 3],
pub firmware_version: [u8; 3],
pub device_identifier: u16,
pub enumeration_type: EnumerationType,
}
Expand description
Devices send EnumerateResponse
s when they are connected, disconnected or when an enumeration was
triggered by the user using the Enumerate
method.
Fields§
§uid: String
The UID of the device.
connected_uid: String
UID where the device is connected to. For a Bricklet this is the UID of the Brick or Bricklet it is connected to. For a Brick it is the UID of the bottommost Brick in the stack. For the bottommost Brick in a stack it is “0”. With this information it is possible to reconstruct the complete network topology.
position: char
For Bricks: ‘0’ - ‘8’ (position in stack). For Bricklets: ‘a’ - ‘d’ (position on Brick).
hardware_version: [u8; 3]
Major, minor and release number for hardware version.
firmware_version: [u8; 3]
Major, minor and release number for firmware version.
device_identifier: u16
A number that represents the device. The device identifier numbers can be found here. There are also constants for these numbers named following this pattern:
For example: MasterBrick.DEVICE_IDENTIFIER or AmbientLightBricklet.DEVICE_IDENTIFIER.
enumeration_type: EnumerationType
Type of enumeration. See EnumerationType
Trait Implementations§
source§impl Clone for EnumerateResponse
impl Clone for EnumerateResponse
source§fn clone(&self) -> EnumerateResponse
fn clone(&self) -> EnumerateResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more