Table of Contents

Class FirmwareVersionResponseHandler

Namespace
Z21.Core.ResponseHandler.SystemState
Assembly
Z21.Client.dll

Reads the firmware version of the Z21 when requested with GetFirmwareVersionCommand.

public class FirmwareVersionResponseHandler : IFirmwareVersionResponseHandler, IZ21ResponseHandler
Inheritance
FirmwareVersionResponseHandler
Implements
Inherited Members

Properties

Name

Human-readable command according to the specification.

public string Name { get; }

Property Value

string

Methods

BcdToInt(byte)

protected virtual int BcdToInt(byte bcd)

Parameters

bcd byte

Returns

int

CanHandle(byte[])

Returns true if this response handler can handle the response. False otherwise.

public bool CanHandle(byte[] response)

Parameters

response byte[]

Returns

bool

Handle(byte[])

public void Handle(byte[] response)

Parameters

response byte[]

Events

OnFirmwareVersionReceived

public event EventHandler<FirmwareVersionReceivedEventArgs>? OnFirmwareVersionReceived

Event Type

EventHandler<FirmwareVersionReceivedEventArgs>