Table of Contents

Class SBC

Namespace
DuetAPI.ObjectModel
Assembly
DuetAPI.dll

Information about the SBC in SBC mode

public class SBC : ModelObject, INotifyPropertyChanging, IStaticModelObject, IModelObject, ICloneable, INotifyPropertyChanged
Inheritance
SBC
Implements
Inherited Members

Constructors

SBC()

public SBC()

Properties

AppArmor

Indicates if AppArmor support is enabled

public bool AppArmor { get; set; }

Property Value

bool

Remarks

By default, AppArmor is required for plugin functionality

CPU

Information about the SBC's CPU

public CPU CPU { get; }

Property Value

CPU

DSF

Information about DSF running on the SBC

public DSF DSF { get; }

Property Value

DSF

Distribution

Name and version of the system distribution or null if unknown

public string? Distribution { get; set; }

Property Value

string

DistributionBuildTime

Build datetime of the system distribution or null if unknown

[JsonConverter(typeof(JsonOptionalShortDateTimeConverter))]
public DateTime? DistributionBuildTime { get; set; }

Property Value

DateTime?

Memory

Information about the SBC's memory (RAM)

public Memory Memory { get; }

Property Value

Memory

Model

SBC model or null if unknown

public string? Model { get; set; }

Property Value

string

Serial

Serial of the SBC or null if unknown

public string? Serial { get; set; }

Property Value

string

Uptime

Uptime of the running system (in s)

public double? Uptime { get; set; }

Property Value

double?

Methods

Assign(IStaticModelObject)

Assign the properties from another instance. This is required to update model properties which do not have a setter

public void Assign(IStaticModelObject from)

Parameters

from IStaticModelObject

Other instance

Clone()

Clone this instance

public object Clone()

Returns

object

Cloned instance

Remarks

This method is auto-generated

UpdateFromJson(JsonElement, bool)

Update this instance from a given JSON element

public void UpdateFromJson(JsonElement jsonElement, bool ignoreSbcProperties)

Parameters

jsonElement JsonElement

Element to update this intance from

ignoreSbcProperties bool

Whether SBC properties are ignored

Remarks

This method is auto-generated

Exceptions

JsonException

Failed to deserialize data

UpdateFromJsonReader(ref Utf8JsonReader, bool)

Update this instance from a given JSON element

public void UpdateFromJsonReader(ref Utf8JsonReader reader, bool ignoreSbcProperties)

Parameters

reader Utf8JsonReader

Reader to update this intance from

ignoreSbcProperties bool

Whether SBC properties are ignored

Remarks

This method is auto-generated

Exceptions

JsonException

Failed to deserialize data