본문 바로가기

네트워크 정리/통신관련(MQTT,ssh,rosbridge)8

ssh 관련정리 기본 개념 보통 openssh-client 는 깔려있지만 openssh-server 는 깔려 있지 않다. ssh를 받는 입장에서는 "openssh-server" lib 가 필요하다. apt update && apt install openssh-server sudo -y openssh-server 를 다운받고 service ssh restart 이거나 service ssh start // OK 가 뜨면 됨. ssh를 시작해준다. ssh 서버유저네임@서버포트URL ssh 서버유저네임@서버포트URL:포트포워딩포트 ssh finger print 없이 로그인 하는방법 1. 접속할 IP 의 키를 스캔한다. ssh-keyscan -H 172.29.0.5 2. 두번 확인 하는 절차인 finger print 를 진행 X.. 2022. 10. 9.
gmqtt 예제 ( client -> handler -> agent 구조 ) 전제로 wsl : 버전 2 ( 버전2 필요함 docker 랑 쓰려면 ) 리눅스 : 우분투 20.04 LTS python : 3.8 version lib : uvloop, gmqtt 설치 필요 docker 에 EMQX 구현 후, 셋업까지 해서 컨테이너 start 상태 TEST 확인용 프로그램 : MQTT BOX 코드 설명 : 3초마다 특정 topic으로 publish (2개) -> mqtt box로 sub해서 확인 특정 topic sub -> mqtt box 로 publish 해서 message 찍어보는 TEST 코드 agent 파일 밑에 __main__ 코드로 실행 mqtt box 결과창 mqtt_client.py 코드 # !/usr/bin/python # -*- coding: utf-8 -*- #---.. 2022. 9. 4.
gmqtt 예제 모음 저장 메모 https://programtalk.com/vs4/python/wialon/gmqtt/examples/resubscription.py/ python/wialon/gmqtt/examples/resubscription.py Example code examples for python/wialon/gmqtt/examples/resubscription.py. Learn how to use api python/wialon/gmqtt/examples/resubscription.py programtalk.com 2022. 9. 2.
gmqtt ( Retain Message, Clean Session and Qos Table ) 참고 : http://www.steves-internet-guide.com/mqtt-clean-sessions-example/ MQTT Clean Sessions and QOS Examples A look at persistent and non persistent connections and how they are controlled using the clean session flag and how QOS settings affect them. www.steves-internet-guide.com 결론 부터 example 설명 : " client1 ( subscriber 구독 ) client2 ( publisher 게시) " 상황에서 client1 의 Clean Session Flag, Retain Fl.. 2022. 6. 29.
MQTTbox 사용법 유언장 설명 https://www.hivemq.com/blog/mqtt-essentials-part-9-last-will-and-testament/ Last Will and Testament - MQTT Essentials: Part 9 Related Links Last Will and Testament - MQTT Essentials: Part 9 Written by The HiveMQ Team Category: MQTT Essentials MQTT Published: March 9, 2015 Welcome to the ninth part of MQTT Essentials. A ten-part blog series on the core features and concepts of the www.hive.. 2022. 6. 14.
rosbridge https://carla.readthedocs.io/projects/ros-bridge/en/latest/ros_installation_ros1/ http://wiki.ros.org/rosbridge_suite/Tutorials/RunningRosbridge http://wiki.ros.org/rosbridge_suite/Tutorials/DevelopingRosbridge 참고 예제 https://github.com/nickvaras/rosbridge-websocket-examples from ws4py.client.threadedclient import WebSocketClient 예제 설명 : 웹 소켓을 통해 rosbridge를 사용하여 모바일 로봇을 제어하기 위한 베어본 예제 미니 드라이버 세트... 2022. 5. 1.