openthread-br
0.3.0-72c0388
|
Public Types | |
using | DeviceRoleHandler = std::function< void(DeviceRole)> |
using | ScanHandler = std::function< void(const std::vector< ActiveScanResult > &)> |
using | EnergyScanHandler = std::function< void(const std::vector< EnergyScanResult > &)> |
using | OtResultHandler = std::function< void(ClientError)> |
Public Member Functions | |
ThreadApiDBus (DBusConnection *aConnection) | |
ThreadApiDBus (DBusConnection *aConnection, const std::string &aInterfaceName) | |
void | AddDeviceRoleHandler (const DeviceRoleHandler &aHandler) |
ClientError | PermitUnsecureJoin (uint16_t aPort, uint32_t aSeconds) |
ClientError | Scan (const ScanHandler &aHandler) |
ClientError | EnergyScan (uint32_t aScanDuration, const EnergyScanHandler &aHandler) |
ClientError | Attach (const std::string &aNetworkName, uint16_t aPanId, uint64_t aExtPanId, const std::vector< uint8_t > &aNetworkKey, const std::vector< uint8_t > &aPSKc, uint32_t aChannelMask, const OtResultHandler &aHandler) |
ClientError | Attach (const OtResultHandler &aHandler) |
ClientError | Detach (const OtResultHandler &aHandler) |
ClientError | AttachAllNodesTo (const std::vector< uint8_t > &aDataset) |
ClientError | FactoryReset (const OtResultHandler &aHandler) |
ClientError | Reset (void) |
ClientError | JoinerStart (const std::string &aPskd, const std::string &aProvisioningUrl, const std::string &aVendorName, const std::string &aVendorModel, const std::string &aVendorSwVersion, const std::string &aVendorData, const OtResultHandler &aHandler) |
ClientError | JoinerStop (void) |
ClientError | AddOnMeshPrefix (const OnMeshPrefix &aPrefix) |
ClientError | RemoveOnMeshPrefix (const Ip6Prefix &aPrefix) |
ClientError | AddExternalRoute (const ExternalRoute &aExternalRoute) |
ClientError | RemoveExternalRoute (const Ip6Prefix &aPrefix) |
ClientError | SetMeshLocalPrefix (const std::array< uint8_t, OTBR_IP6_PREFIX_SIZE > &aPrefix) |
ClientError | SetLegacyUlaPrefix (const std::array< uint8_t, OTBR_IP6_PREFIX_SIZE > &aPrefix) |
ClientError | SetActiveDatasetTlvs (const std::vector< uint8_t > &aDataset) |
ClientError | SetFeatureFlagListData (const std::vector< uint8_t > &aFeatureFlagListData) |
ClientError | SetLinkMode (const LinkModeConfig &aConfig) |
ClientError | SetRadioRegion (const std::string &aRadioRegion) |
ClientError | SetNat64Enabled (bool aEnabled) |
ClientError | GetLinkMode (LinkModeConfig &aConfig) |
ClientError | GetDeviceRole (DeviceRole &aDeviceRole) |
ClientError | GetNetworkName (std::string &aName) |
ClientError | GetPanId (uint16_t &aPanId) |
ClientError | GetExtPanId (uint64_t &aExtPanId) |
ClientError | GetChannel (uint16_t &aChannel) |
ClientError | GetNetworkKey (std::vector< uint8_t > &aNetworkKey) |
ClientError | GetCcaFailureRate (uint16_t &aFailureRate) |
ClientError | GetLinkCounters (MacCounters &aCounters) |
ClientError | GetIp6Counters (IpCounters &aCounters) |
ClientError | GetSupportedChannelMask (uint32_t &aChannelMask) |
ClientError | GetRloc16 (uint16_t &aRloc16) |
ClientError | GetExtendedAddress (uint64_t &aExtendedAddress) |
ClientError | GetRouterId (uint8_t &aRouterId) |
ClientError | GetLeaderData (LeaderData &aLeaderData) |
ClientError | GetNetworkData (std::vector< uint8_t > &aNetworkData) |
ClientError | GetStableNetworkData (std::vector< uint8_t > &aNetworkData) |
ClientError | GetLocalLeaderWeight (uint8_t &aWeight) |
ClientError | GetChannelMonitorSampleCount (uint32_t &aSampleCount) |
ClientError | GetChannelMonitorAllChannelQualities (std::vector< ChannelQuality > &aChannelQualities) |
ClientError | GetChildTable (std::vector< ChildInfo > &aChildTable) |
ClientError | GetNeighborTable (std::vector< NeighborInfo > &aNeighborTable) |
ClientError | GetPartitionId (uint32_t &aPartitionId) |
ClientError | GetInstantRssi (int8_t &aRssi) |
ClientError | GetRadioTxPower (int8_t &aTxPower) |
ClientError | GetExternalRoutes (std::vector< ExternalRoute > &aExternalRoutes) |
ClientError | GetOnMeshPrefixes (std::vector< OnMeshPrefix > &aOnMeshPrefixes) |
ClientError | GetActiveDatasetTlvs (std::vector< uint8_t > &aDataset) |
ClientError | GetFeatureFlagListData (std::vector< uint8_t > &aFeatureFlagListData) |
ClientError | GetRadioRegion (std::string &aRadioRegion) |
ClientError | GetSrpServerInfo (SrpServerInfo &aSrpServerInfo) |
ClientError | GetMdnsTelemetryInfo (MdnsTelemetryInfo &aMdnsTelemetryInfo) |
std::string | GetInterfaceName (void) |
ClientError | UpdateVendorMeshCopTxtEntries (std::vector< TxtEntry > &aUpdate) |
ClientError | GetNat64State (Nat64ComponentState &aState) |
ClientError | GetNat64Mappings (std::vector< Nat64AddressMapping > &aMappings) |
ClientError | GetNat64ProtocolCounters (Nat64ProtocolCounters &aCounters) |
ClientError | GetNat64ErrorCounters (Nat64ErrorCounters &aCounters) |
otbr::DBus::ThreadApiDBus::ThreadApiDBus | ( | DBusConnection * | aConnection | ) |
The constructor of a d-bus object.
Will use the default interfacename
[in] | aConnection | The dbus connection. |
otbr::DBus::ThreadApiDBus::ThreadApiDBus | ( | DBusConnection * | aConnection, |
const std::string & | aInterfaceName | ||
) |
The constructor of a d-bus object.
[in] | aConnection | The dbus connection. |
[in] | aInterfaceName | The network interface name. |
void otbr::DBus::ThreadApiDBus::AddDeviceRoleHandler | ( | const DeviceRoleHandler & | aHandler | ) |
This method adds a callback for device role change.
[in] | aHandler | The device role handler. |
ClientError otbr::DBus::ThreadApiDBus::AddExternalRoute | ( | const ExternalRoute & | aExternalRoute | ) |
This method adds an external route.
[in] | aExternalroute | The external route config |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::AddOnMeshPrefix | ( | const OnMeshPrefix & | aPrefix | ) |
This method adds a on-mesh address prefix.
[in] | aPrefix | The address prefix. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::Attach | ( | const OtResultHandler & | aHandler | ) |
This method attaches the device to the Thread network.
The network parameters will be set with the active dataset under this circumstance.
[in] | aHandler | The attach result handler. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::Attach | ( | const std::string & | aNetworkName, |
uint16_t | aPanId, | ||
uint64_t | aExtPanId, | ||
const std::vector< uint8_t > & | aNetworkKey, | ||
const std::vector< uint8_t > & | aPSKc, | ||
uint32_t | aChannelMask, | ||
const OtResultHandler & | aHandler | ||
) |
This method attaches the device to the Thread network.
[in] | aNetworkName | The network name. |
[in] | aPanId | The pan id, UINT16_MAX for random. |
[in] | aExtPanId | The extended pan id, UINT64_MAX for random. |
[in] | aNetworkKey | The network key, empty for random. |
[in] | aPSKc | The pre-shared commissioner key, empty for random. |
[in] | aChannelMask | A bitmask for valid channels, will random select one. |
[in] | aHandler | The attach result handler. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::AttachAllNodesTo | ( | const std::vector< uint8_t > & | aDataset | ) |
This method attaches the device to the specified Thread network.
If the device has already attached to a network, send a request to migrate the existing network.
[in] | aDataset | The Operational Dataset that contains parameter values of the Thread network to attach to. It must have a valid Delay Timer and Pending Timestamp. |
ERROR_NONE | Successfully requested the Thread network migration. |
ERROR_DBUS | D-Bus encode/decode error. |
OT_ERROR_REJECTED | The request was rejected by the leader. |
OT_ERROR_FAILED | Failed to send the request. |
OT_ERROR_INVALID_STATE | The device is attaching. |
OT_ERROR_INVALID_ARGS | Arguments are invalid. |
OT_ERROR_BUSY | There is an ongoing request. |
ClientError otbr::DBus::ThreadApiDBus::Detach | ( | const OtResultHandler & | aHandler | ) |
This method detaches the device from the Thread network.
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::EnergyScan | ( | uint32_t | aScanDuration, |
const EnergyScanHandler & | aHandler | ||
) |
This method performs an IEEE 802.15.4 Energy Scan.
[in] | aScanDuration | The duration for the scan for each channel, in milliseconds. Note that maximum value for the duration is currently 65535. If it's the duration is larger than that, the handler will get an INVALID_ARGS error code. |
[in] | aHandler | The energy scan result handler. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::FactoryReset | ( | const OtResultHandler & | aHandler | ) |
This method performs a factory reset.
[in] | aHandler | The reset result handler. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetActiveDatasetTlvs | ( | std::vector< uint8_t > & | aDataset | ) |
This method gets the active operational dataset
[out] | aDataset | The active operational dataset |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetCcaFailureRate | ( | uint16_t & | aFailureRate | ) |
This method gets the Clear Channel Assessment failure rate.
[out] | aFailureRate | The failure rate. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetChannel | ( | uint16_t & | aChannel | ) |
This method gets the extended pan id.
[out] | aChannel | The extended pan id. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetChannelMonitorAllChannelQualities | ( | std::vector< ChannelQuality > & | aChannelQualities | ) |
This method gets the channel qualities
[out] | aChannelQualities | The channel qualities. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetChannelMonitorSampleCount | ( | uint32_t & | aSampleCount | ) |
This method gets the channel monitor sample count.
[out] | aSampleCount | The channel monitor sample count. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetChildTable | ( | std::vector< ChildInfo > & | aChildTable | ) |
This method gets the child table.
[out] | aChildTable | The child table. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetDeviceRole | ( | DeviceRole & | aDeviceRole | ) |
This method gets the current device role.
[out] | aDeviceRole | The device role |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetExtendedAddress | ( | uint64_t & | aExtendedAddress | ) |
This method gets 802.15.4 extended address
[out] | aExtendedAddress | The extended address |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetExternalRoutes | ( | std::vector< ExternalRoute > & | aExternalRoutes | ) |
This method gets the external route table
[out] | aExternalRoutes | The external route table |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetExtPanId | ( | uint64_t & | aExtPanId | ) |
This method gets the extended pan id.
[out] | aExtPanId | The extended pan id. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetFeatureFlagListData | ( | std::vector< uint8_t > & | aFeatureFlagListData | ) |
This method gets the feature flag list proto serialized byte data.
[out] | aFeatureFlagListData | The feature flag list proto serialized byte data (see proto/feature_flag.proto) |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetInstantRssi | ( | int8_t & | aRssi | ) |
This method gets the rssi of the latest packet.
[out] | aRssi | The rssi of the latest packet. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
std::string otbr::DBus::ThreadApiDBus::GetInterfaceName | ( | void | ) |
This method returns the network interface name the client is bound to.
ClientError otbr::DBus::ThreadApiDBus::GetIp6Counters | ( | IpCounters & | aCounters | ) |
This method gets the ip level statistics counters.
[out] | aCounters | The statistic counters. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetLeaderData | ( | LeaderData & | aLeaderData | ) |
This method gets the network's leader data.
[out] | aLeaderData | The leader data. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetLinkCounters | ( | MacCounters & | aCounters | ) |
This method gets the mac level statistics counters.
[out] | aCounters | The statistic counters. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetLinkMode | ( | LinkModeConfig & | aConfig | ) |
This method gets the link operating mode.
[out] | aConfig | The operating mode config. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetLocalLeaderWeight | ( | uint8_t & | aWeight | ) |
This method gets the node's local leader weight.
[out] | aWeight | The local leader weight. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetMdnsTelemetryInfo | ( | MdnsTelemetryInfo & | aMdnsTelemetryInfo | ) |
This method gets the MDNS telemetry information.
[out] | aMdnsTelemetryInfo | The MDNS telemetry information. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetNat64ErrorCounters | ( | Nat64ErrorCounters & | aCounters | ) |
This method gets the NAT64 error counters.
[out] | aCounters | The NAT64 error counters. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetNat64Mappings | ( | std::vector< Nat64AddressMapping > & | aMappings | ) |
This method gets the active NAT64 mappings.
[out] | aMappings | The active NAT64 mappings. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetNat64ProtocolCounters | ( | Nat64ProtocolCounters & | aCounters | ) |
This method gets the NAT64 traffic counters.
[out] | aCounters | The NAT64 traffic counters. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetNat64State | ( | Nat64ComponentState & | aState | ) |
This method gets the state of NAT64.
[out] | aState | The NAT64 state of each components. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetNeighborTable | ( | std::vector< NeighborInfo > & | aNeighborTable | ) |
This method gets the neighbor table.
[out] | aNeighborTable | The neighbor table. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetNetworkData | ( | std::vector< uint8_t > & | aNetworkData | ) |
This method gets the network data.
[out] | aNetworkData | The network data. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetNetworkKey | ( | std::vector< uint8_t > & | aNetworkKey | ) |
This method gets the network network key.
[out] | aNetworkKey | The network network key. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetNetworkName | ( | std::string & | aName | ) |
This method gets the network name.
[out] | aName | The network name. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetOnMeshPrefixes | ( | std::vector< OnMeshPrefix > & | aOnMeshPrefixes | ) |
This method gets the on-mesh prefixes
[out] | aOnMeshPrefixes | The on-mesh prefixes |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetPanId | ( | uint16_t & | aPanId | ) |
This method gets the network pan id.
[out] | aPanId | The pan id. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetPartitionId | ( | uint32_t & | aPartitionId | ) |
This method gets the network's parition id.
[out] | aPartitionId | The partition id. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetRadioRegion | ( | std::string & | aRadioRegion | ) |
This method gets the radio region.
[out] | aRadioRegion | The radio region. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetRadioTxPower | ( | int8_t & | aTxPower | ) |
This method gets the radio transmit power.
[out] | aTxPower | The radio transmit power. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetRloc16 | ( | uint16_t & | aRloc16 | ) |
This method gets the Thread routing locator
[out] | aRloc16 | The routing locator |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetRouterId | ( | uint8_t & | aRouterId | ) |
This method gets the node's router id.
[out] | aRouterId | The router id. |
ERROR_NONE | Successfully performed the dbus function call. |
ERROR_DBUS | dbus encode/decode error. |
OT_ERROR_INVALID_STATE | The node is not a router. |
... | OpenThread defined error value otherwise. |
ClientError otbr::DBus::ThreadApiDBus::GetSrpServerInfo | ( | SrpServerInfo & | aSrpServerInfo | ) |
This method gets the SRP server information.
[out] | aSrpServerInfo | The SRP server information. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetStableNetworkData | ( | std::vector< uint8_t > & | aNetworkData | ) |
This method gets the stable network data.
[out] | aNetworkData | The stable network data. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::GetSupportedChannelMask | ( | uint32_t & | aChannelMask | ) |
This method gets the supported channel mask.
[out] | aChannelMask | The channel mask. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::JoinerStart | ( | const std::string & | aPskd, |
const std::string & | aProvisioningUrl, | ||
const std::string & | aVendorName, | ||
const std::string & | aVendorModel, | ||
const std::string & | aVendorSwVersion, | ||
const std::string & | aVendorData, | ||
const OtResultHandler & | aHandler | ||
) |
This method triggers a thread join process.
[in] | aPskd | The pre-shared key for device. |
[in] | aProvisioningUrl | The provision url. |
[in] | aVendorName | The vendor name. |
[in] | aVendorModel | The vendor model. |
[in] | aVendorSwVersion | The vendor software version. |
[in] | aVendorData | The vendor custom data. |
[in] | aHandler | The join result handler. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::JoinerStop | ( | void | ) |
This method stops the joiner process
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::PermitUnsecureJoin | ( | uint16_t | aPort, |
uint32_t | aSeconds | ||
) |
This method permits unsecure join on port.
[in] | aPort | The port number. |
[in] | aSeconds | The timeout to close the port, 0 for never close. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::RemoveExternalRoute | ( | const Ip6Prefix & | aPrefix | ) |
This method removes an external route.
[in] | aPrefix | The route prefix. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::RemoveOnMeshPrefix | ( | const Ip6Prefix & | aPrefix | ) |
This method removes a on-mesh address prefix.
[in] | aPrefix | The address prefix. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::Reset | ( | void | ) |
This method performs a soft reset.
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::Scan | ( | const ScanHandler & | aHandler | ) |
This method performs a Thread network scan.
[in] | aHandler | The scan result handler. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::SetActiveDatasetTlvs | ( | const std::vector< uint8_t > & | aDataset | ) |
This method sets the active operational dataset.
[out] | aDataset | The active operational dataset |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::SetFeatureFlagListData | ( | const std::vector< uint8_t > & | aFeatureFlagListData | ) |
This method sets the feature flag list data.
[out] | aFeatureFlagListData | The feature flag list proto serialized byte data (see proto/feature_flag.proto) |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::SetLegacyUlaPrefix | ( | const std::array< uint8_t, OTBR_IP6_PREFIX_SIZE > & | aPrefix | ) |
This method sets the legacy prefix of ConnectIP.
[in] | aPrefix | The address prefix. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::SetLinkMode | ( | const LinkModeConfig & | aConfig | ) |
This method sets the link operating mode.
[in] | aConfig | The operating mode config. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::SetMeshLocalPrefix | ( | const std::array< uint8_t, OTBR_IP6_PREFIX_SIZE > & | aPrefix | ) |
This method sets the mesh-local prefix.
[in] | aPrefix | The address prefix. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::SetNat64Enabled | ( | bool | aEnabled | ) |
This method sets the NAT64 switch.
[in] | aEnable | A boolean to enable/disable the NAT64. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::SetRadioRegion | ( | const std::string & | aRadioRegion | ) |
This method sets the radio region.
[in] | aRadioRegion | The radio region. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |
ClientError otbr::DBus::ThreadApiDBus::UpdateVendorMeshCopTxtEntries | ( | std::vector< TxtEntry > & | aUpdate | ) |
This method sets multiple vendor-specific entries for the TXT record of the MeshCoP service.
aUpdate
must contain all vendor-specific TXT entries you want to update. The latest call will supersede previous calls.aUpdate
contains thread-specific entries like 'nn', 'at', the whole update will be rejected.aUpdate
contains a key which is already published in TXT record, it will be updated according to aUpdate
.[in] | aUpdate | The updated key-value entries. |
ERROR_NONE | Successfully performed the dbus function call |
ERROR_DBUS | dbus encode/decode error |
... | OpenThread defined error value otherwise |