DeviceService class
Service to handle Device management (tds) operations.
- Inheritance
-
- Object
- OnvifBaseService
- DeviceService
Constructors
- DeviceService(OnvifClient client)
Properties
- client → OnvifClient
-
The client used to communicate with the ONVIF device.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getDeviceInformation(
) → Future< Map< String, String> > - Retrieves the device information (Manufacturer, Model, Serial, etc.).
-
getNetworkDefaultGateway(
) → Future< String?> - Returns the current default IPv4 gateway address, or null if unavailable.
-
getNetworkInterfaces(
) → Future< List< OnvifNetworkInterface> > - Returns the list of network interfaces on the device.
-
getRelayOutputs(
) → Future< List< String> > -
getServiceUrls(
) → Future< Map< String, String> > - Returns service URLs extracted from GetCapabilities. Keys: 'Device', 'Events', 'Imaging', 'Media', 'PTZ', 'DeviceIO', etc.
-
getSystemDateAndTime(
) → Future< DateTime> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setDhcp(
String interfaceToken) → Future< bool> - Switches the interface to DHCP mode. Returns true if the camera requires a reboot to apply changes. Call systemReboot manually after any necessary pre-reboot operations.
-
setDns(
List< String> ipv4Addresses) → Future<void> - Sets DNS servers manually.
-
setNetworkDefaultGateway(
String ipv4Address) → Future< void> - Sets the default IPv4 gateway.
-
setNetworkInterfaces(
String interfaceToken, {required String ip, required int prefixLength}) → Future< bool> - Sets a static IPv4 address on the given interface. Returns true if the camera requires a reboot to apply changes.
-
setRelayOutputState(
String token, {bool active = true}) → Future< void> -
setStaticIp(
{required String interfaceToken, required String ip, required int prefixLength, required String gateway}) → Future< bool> - Convenience: sets static IP + gateway. Returns true if the camera requires a reboot to apply changes. Call systemReboot manually after any necessary pre-reboot operations.
-
systemReboot(
) → Future< void> - Reboots the device. Connection will be lost after this call.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited