| xCore-SDK 0.7.1 xCore SDK C# API

Public 成员函数 | 所有成员列表
rokae::clr::BaseUpgrade类 参考

Controller upgrade and backup APIs. 更多...

`#include <upgrade_cli.hpp>`

## Public 成员函数
| BaseUpgrade ()
| Default constructor without connection. 更多...
| BaseUpgrade (String^ remote_ip)
| Construct and connect to upgrade server. 更多...
| ~BaseUpgrade ()
| Destructor
void | connect ([System::Runtime::InteropServices::Out] ErrorCode^% ec)
| Connect to robot upgrade server. 更多...
void | connect (String^ remote_ip)
| Connect to robot upgrade server. 更多...
void | upgrade (String^ local_file_path, [System::Runtime::InteropServices::Out] ErrorCode^% ec)
| Upgrade controller package. 更多...
void | exportBackup (String^ local_file_path, array< BackupItem >^ items, [System::Runtime::InteropServices::Out] ErrorCode^% ec)
| Export controller backup. 更多...

## 详细描述

Controller upgrade and backup APIs.

在文件 upgrade_cli.hpp 第 19 行定义.

## 构造及析构函数说明

## ◆ BaseUpgrade() [1/2]

rokae::clr::BaseUpgrade::BaseUpgrade | ( |  | ) |

Default constructor without connection.

## ◆ BaseUpgrade() [2/2]

rokae::clr::BaseUpgrade::BaseUpgrade | ( | String^ | remote_ip | ) |

Construct and connect to upgrade server.

参数

  remote_ip | Robot IP address

## 成员函数说明

## ◆ connect() [1/2]

void rokae::clr::BaseUpgrade::connect | ( | [System::Runtime::InteropServices::Out] ErrorCode^% | ec | ) |

Connect to robot upgrade server.

参数

  ec | Error code output

## ◆ connect() [2/2]

void rokae::clr::BaseUpgrade::connect | ( | String^ | remote_ip | ) |

Connect to robot upgrade server.

参数

  remote_ip | Robot IP address

## ◆ exportBackup()

void rokae::clr::BaseUpgrade::exportBackup | ( | String^ | local_file_path,
|  | array< BackupItem >^ | items,
|  | [System::Runtime::InteropServices::Out] ErrorCode^% | ec
| ) |  |

Export controller backup.

参数

  local_file_path | Local backup file path
  items | Backup items
  ec | Error code output

## ◆ upgrade()

void rokae::clr::BaseUpgrade::upgrade | ( | String^ | local_file_path,
|  | [System::Runtime::InteropServices::Out] ErrorCode^% | ec
| ) |  |

Upgrade controller package.

参数

  local_file_path | Local package path
  ec | Error code output

该类的文档由以下文件生成:

- upgrade_cli.hpp