自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 json-c使用

json-c使用例子static void *message_handler(void *msg){ int i; int flag = 1; int state_flag = -1; char deviceId[ID_LEN] = {0}; strncpy(deviceId,"LS",2); struct json_object *new_object,*agtid_obje...

2019-07-24 17:55:36 801

原创 intTobyte

int类型转换为byte#define byte unsigned charstatic void intToByte(int i,byte *bytes) { //byte[] bytes = new byte[4]; int size = 4; memset(bytes,0,sizeof(byte) * size); bytes[3] = (byte)...

2019-07-24 17:42:11 926

原创 MD5加密

md5.h#ifndef MD5_H#define MD5_Htypedef struct{ unsigned int count[2]; unsigned int state[4]; unsigned char buffer[64]; } MD5_CTX;#define F(x,y,z) ((x & y) | (~x & z))#define G...

2019-07-24 17:38:32 623

原创 UDP通信例子

1、UDP server端(非阻塞)#include <stdint.h>#include <string.h>#include <stdbool.h>#include <pthread.h>#include <sys/types.h>#include <sys/socket.h>#include <n...

2019-07-24 16:49:35 2008

原创 Git常用使用命令

1、git 放弃本地修改,强制拉取更新git fetch --allgit reset --hard origin/mastergit pull //可以省略2、git上传本地更新到远程代码仓git add ./file //上传更新的文件目录git commit -m "更新说明"git push3、git回滚到特定版本//git reset回退到指定版本,不...

2019-04-23 10:54:53 175

原创 openwrt开发之利用uci库读取配置文件例子

openwrt开发之利用uci库读取配置文件例子#include<stdio.h>#include <uci.h>static struct uci_context * ctx = NULL; void getWirelessConfig(char *SSID,char *password,char *encrypt){ char *ssid; char *p...

2019-03-29 16:35:19 2120

原创 深度学习之自编码器理解

看了很多论文,都没完全理解为什么自编码器可以用来提取特征,可以降维,可以预训练,可以用来无监督学习,可以用来自动给数据打标签,。。。 直到今天突然想到了信号采样/编码的原理,才突然完全理解了 自编码器的过程就像是对模拟信号进行采样,在采样过程中,我们要尽量保留住信号的原有显著特征,在解码后尽量还原信号,尽量不失真!...

2019-03-29 16:12:12 475

原创 【酱菜物联】微信小程序实现远程控制LED灯

本教程是用ESP8266实现远程控制LED灯的亮/灭,只要学会了控制LED灯,就可以控制继电器、电机等很多东西噢开发之前大家需要先搭好arduino for esp8266 的开发环境噢,具体可以看下面两个大神写的帖子http://www.arduino.cn/thread-17895-1-1.htmlhttp://www.arduino.cn/thread-17896-1-1.h

2016-12-07 10:36:51 24731 9

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除