NSUKit 1.4.0
板卡级统一交互接口
载入中...
搜索中...
未找到
send_icd_command_tcp.cpp
浏览该文件的文档.
1
2// Copyright (c) 2024. Naishu
3// NSUKit is licensed under Mulan PSL v2.
4// You can use this software according to the terms and conditions of the Mulan PSL v2.
5// You may obtain a copy of Mulan PSL v2 at:
6// http://license.coscl.org.cn/MulanPSL2
7// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
8// EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
9// MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10// See the Mulan PSL v2 for more details.
12
13//
14// Created by liuwen<liuwen@naishu.tech> on 2024/6/12.
15//
16#include "NSUKit.h"
17
18
19int main(int argc, char *argv[]) {
20 if (argc != 2) {
21 std::cout << "Unsupported parameter passing method" << std::endl;
22 std::cout << argv[0] << " {command_name}" << std::endl;
23 return 1;
24 }
26 nsuInitParam_t param;
27 param.cmd_ip = "192.168.1.201";
28 param.cmd_tcp_port = 5001;
29 auto res = kit.link_cmd(&param);
30 std::cout << "command_name is " << argv[1] << std::endl;
31 kit.execute(argv[1]);
32}
std::string cmd_ip
Definition: type.h:98
uint32_t cmd_tcp_port
Definition: type.h:99