smart_object library

SmartObject Registry from Open Mobile Alliance is defined in defs.json Custom Smart Object definitions need to be loaded in defs-custom.json

 final smartObjectDefs = smartObjectDefsFromJson(jsonString);

Classes

AccessControlList
ArrayValue
BaseObject
Base class for RootObject and SmartObject
BoolValue
CapabilityManagement
Represents the Device Management and Service Enablement Interface from OMA
Confirmation
Directory
Directory is the entity that holds the run-time SmartObject instances It represents a capability lookup It should be provided through riverpod to the rest of the system
Display
Find a way how to make it work when user interaction is not possible user will need to authorize the Trustee on specific scope and delegation level.
ExecuteValue
FieldMask
FloatValue
Host
IntValue
InvalidValue
LinkValue
MeasurementUnit
MobileHost
ObjectLinkRoot
ObjectLinkSingle
ObjectLinkTuple
OpaqueValue
ProgressNotification
Resource
Resource is the standardized unit that carries a value. This represents the interface only so services know what kind of value to expect for each _rid
ResourceLinkMultiple
ResourceLinkSingle
RootObject
Special object in the Directory, Represents the top node in the tree structure It has attributes that are inherited by all nodes It does not have resources though
Security
SecurityCreator
ServerHost
SmartObject
SmartObject represents a specific capability an intelligent product exposes
SmartObjectCreator
SmartObjectCreator based class for specific SmartObjectCreators that create specific SmartObjects
StringValue
Target
Target represents the part of the SmartObject that is distributed on a different physical system
TimeValue
Trustee
Trustee represents the LWM2M Server object
TrusteeCreator
UserChoice
UserInput
Value

Extensions

ObjectExtension on String

Functions

objectLinkFromJson(Map<String, dynamic> json) ObjectLink
objectLinkToJson(ObjectLink obj) Map<String, dynamic>

Typedefs

DirectoryBuilder = void Function(Directory directory)
DirectoryBuilder used for filling in supported capabilities in an empty directory
IID = int
Object Instance ID
InstanceTuple = Tuple2<OID, IID>
Represents an instantiated object
ObjectSingle = OID
Represents an object which is not instantiated eg. /5
OID = int
Object ID
RID = int
Resource ID
RIID = int
Resource Instance ID

Exceptions / Errors

NotFoundError
Error and its subclasses are for programmatic errors. If one of those occurs, your code is bad and you should fix your code.
ObjectLinkFormatError
Thrown for each operation that manipulates objects when the addressing is incorrect.
RegistryEntryNotFound
Thrown when someone wants to create a new SmartObject in Directory, however the SmartObjectRegistry does not contain a specific OID or RID
ResourceNotInitializedError
ValueError
Thrown when parsing anything from String or Json and the expected value has different type or different format than the received one
ValueTypeError
Thrown when creating a Value from a ValueType but the but the provided value is not of the expected type