IOT
ahducheng
试试
展开
-
使用libcrypto和mongoose进行RSA_BASE64 加密解密 Demo
rsa base64加密: #include <openssl/rsa.h> #include <openssl/pem.h> #include <openssl/err.h> #include <assert.h> #include "mongoose.h" static char *mqtt_passwd_encrypt() { FILE *fd = fopen("./public_key.pem", "r"); if (!fd) retu原创 2020-05-22 10:55:21 · 459 阅读 · 0 评论 -
恢复git checkout误操作导致清空的数据
使用git add –all添加到暂存区后未做提交,之后执行了git reset head操作,然后又执行了git checkout ./ 操作把所有未提交的数据全清空了: 使用git reflog 找到自己的commit id: 执行git checkoutcommit id ...原创 2020-03-23 14:51:37 · 2241 阅读 · 0 评论 -
MQTT开源协议栈paho.mqtt.c 移植到安卓平台及测试过程
Paho代码下载: 1 2 gitclonehttps://github.com/eclipse/paho.mqtt.c.git cdpaho.mqtt.c 添加根目录下的Android.mk文件: 1 2 3 4 5 6 7 8 9 10 11 ...原创 2019-10-22 10:31:43 · 1257 阅读 · 2 评论 -
Gstreamer的交叉编译
export CC=arm-linux-gnueabihf-gcc 1.zlib 交叉编译 压缩 cd zlib-1.2.11 CC=arm-linux-gnueabihf-gcc ./configure --prefix=/home/chengdu/crossgst/prefix --enable-shared 修改Makefile中的gcc=arm-linux-gnueabihf-gc...原创 2019-10-22 09:59:40 · 3599 阅读 · 0 评论