| | |
| | | package cn.stylefeng.guns.opcua.cert; |
| | | |
| | | import cn.stylefeng.guns.opcua.client.ClientHandler; |
| | | import cn.stylefeng.guns.opcua.entity.NodeEntity; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | @Slf4j |
| | | public class MethodName { |
| | | public void a(String name){ |
| | | log.info("str={},响应方法:{}", name,"A"); |
| | | public class MethodName {/* |
| | | public void a(String Nodee){ |
| | | log.info("str={},响应方法:{}", Nodee,Nodee); |
| | | } |
| | | public void b(String name){ |
| | | log.info("str={},响应方法:{}", name,"B"); |
| | | public void c(String Nodee){ |
| | | try { |
| | | NodeEntity node = NodeEntity.builder().index(2).identifier("my.device.x2") |
| | | .value("99").type("int").build(); |
| | | ClientHandler clientHandler=new ClientHandler(); |
| | | String out=clientHandler.write(node); |
| | | log.info(out); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | public void c(String name){ |
| | | log.info("str={},响应方法:{}", name,"C"); |
| | | public void b(String Nodee){ |
| | | log.info("str={},响应方法:{}", Nodee,Nodee); |
| | | }*/ |
| | | public void a(String param1, String param2) { |
| | | log.info("str={},响应方法:{}", param1,param2); |
| | | } |
| | | public void b(String param1, String param2) { |
| | | log.info("str={},响应方法:{}", param1,param2); |
| | | } |
| | | public void c(String param1, String param2) { |
| | | log.info("str={},响应方法:{}", param1,param2); |
| | | } |
| | | } |