DiscoveryClient class Services

Inheritance
Implemented types

Constructors

DiscoveryClient(String name, ClientChannelBase channel)

Properties

channel ClientChannelBase
getter/setter pairoverride
client DiscoveryServiceClient
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

discoverResources({Map<String, dynamic>? extra}) Future<List<ComponentConfig>>
Returns a list of ComponentConfigs for all discovered viam resources connected to the viam-server machine.
doCommand(Map<String, dynamic> command) Future<Map<String, dynamic>>
Send/Receive arbitrary commands to the Resource
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromRobot(RobotClient robot, String name) DiscoveryClient
Get the DiscoveryClient named name from the provided robot.
getResourceName(String name) ResourceName
Get the ResourceName for this DiscoveryClient with the given name

Constants

subtype → const Subtype