摘要: demo: return :返回值 int mosquitto_username_pw_set(struct mosquitto *mosq, const char *username, const char *password) { if(!mosq) return MOSQ_ERR_INVAL; 阅读全文
posted @ 2017-06-08 16:43 丁培飞 阅读(1264) 评论(0) 推荐(0)
摘要: 1 /* 2 Copyright (c) 2009-2012 Roger Light <roger@atchoo.org> 3 All rights reserved. 4 5 Redistribution and use in source and binary forms, with or wi 阅读全文
posted @ 2017-06-08 16:33 丁培飞 阅读(426) 评论(0) 推荐(0)
摘要: /** ****************************************************************************** * @file apdu.c * @author ding * @version V1.0.0 * @date 2016-10-25 阅读全文
posted @ 2017-06-08 16:31 丁培飞 阅读(406) 评论(0) 推荐(0)
摘要: /* Name : mqtest.c Author : Version : Copyright : Your copyright notice Description : Hello World in C, Ansi-style */#include <stdio.h>#include <stdli 阅读全文
posted @ 2017-06-08 16:30 丁培飞 阅读(209) 评论(0) 推荐(0)
摘要: 指针用法: 定一个结构体: struct mosquitto { mosq_sock_t sock; #ifndef WITH_BROKER mosq_sock_t sockpairR, sockpairW; #endif enum _mosquitto_protocol protocol; cha 阅读全文
posted @ 2017-06-08 16:16 丁培飞 阅读(712) 评论(0) 推荐(0)