IT/Software 2021. 10. 25.
Error using mbedtls_x509_crt_parse
mbedtls 사용시에 mbedtls_x509_crt_parse() 함수 호출 시에 ret = mbedtls_x509_crt_parse(&cacert, (const unsigned char *)mbedtls_m2mqtt_srv_crt, mbedtls_m2mqtt_srv_crt_len ); ... And I get an error -9774. Could you help me to understand why the first certificate works, and the other doesn’t? Thank you, Mattia https://forums.mbed.com/t/error-using-mbedtls-x509-crt-parse/4164 Error using mbedtls_x509_crt_parse..
IT/Software 2021. 10. 18.
Git - detached HEAD 설명 페이지
Git 에서 서브모듈을 쓰다가 보면, 최초에 포함된 submoudule init 하고 update 하면 로컬에 다운된 저장소의 브랜치가 특정 브랜치에 붙어 있지 않는 상태라고 한다. 이를 전문 용어로 "detached HEAD" (ㅋㅋ 번역 그대로네...) 라고 한다. 관련된 내용을 아주 잘 설명한 페이지가 있어서 아래에 소개 https://www.devhak.com/blog/git-detached-head detached HEAD 서브모듈이 포함되어 있는 프로젝트를 클론하면 명령어를 사용하게 되는데, 이때 서브모듈의 브랜치를 확인하면 형태인 것을 확인 할 수 있다. 분리되었다뇨... 브랜치랑 다른 뭔가 무서운(?)상 www.devhak.com 결국 브랜치가 없는 상태에서 수정 삭제를 해서 commit ..
IT/Software 2021. 10. 14.
CMake Overriding a default option - 다른 파일 에서
외부 파일에서 특정 CMake 파일의 option 값을 세팅해 주고 싶다면, 아래 글을 참고 Overriding a default option(...) value in CMake from a parent CMakeLists.txt Overriding a default option(...) value in CMake from a parent CMakeLists.txt I am trying to include several third-party libraries in my source tree with minimal changes to their build system for ease of upgrading. They all use CMake, as do I, so in my own CMakeLists.tx..
IT/Software 2021. 10. 7.
NTP - 간단하게 타임스탬프 가져오기
머 그냥 UDP로 보내서 타임스탬프 값 가져와서 쓰면 되는디 받은 값이 먼지 모르게 요상타. 일단 NTP 패킷의 구조는 다음 사이트에 가면 아주 자세하게 볼 수 있다. http://www.networksorcery.com/enp/protocol/sntp.htm#Receive%20Timestamp SNTP, Simple Network Time Protocol WWVFt. Collins (US) Radio 2.5, 5, 10, 15, 20 MHz. www.networksorcery.com 중요한 것은 아래 그림에서 Transmit Timestamp 값이다. 자세히 공부 하는 것도 좋지만, 여튼 이 패킷을 받으면 41번째 바이트 부터 4바이트만 읽는다. 그 4바이트 값이 바로 1900년에서 지금 현재 까지의 ..