摘要:
1.编写.proto文件,比如GlobalConfig.proto 2.把GlobalConfig.proto 放到nanopb0.4.1-generator-bin的文件夹里面 3.打开windows 命令行,cd 到当前nanopb0.4.1-generator-bin文件夹,输入 protoc 阅读全文
posted @ 2020-03-08 18:26
chenlife
阅读(2577)
评论(0)
推荐(1)
摘要:
Nanopb is a small code-size Protocol Buffers implementation in ansi C. It is especially suitable for use in microcontrollers, but fits any memory rest 阅读全文
posted @ 2020-03-08 18:10
chenlife
阅读(471)
评论(0)
推荐(0)
摘要:
在nanopb中,string类型在生成c语言文件的时候,会有两种结构,一种是指定了最大长度的,一种是没有指定最大长度.指定了最大长度的string,会生成char[] 数组类型,没有指定最大长度的,会生成pb_callback_t类型.具体的可以参照nanopb文档 pb_callback_t 是 阅读全文
posted @ 2020-03-08 18:08
chenlife
阅读(1966)
评论(0)
推荐(0)
摘要:
ESP32 / ESP8266 Arduino: Protocol Buffers In this tutorial we will learn how to get started using Protocol Buffers with the Arduino core, both running 阅读全文
posted @ 2020-03-08 18:00
chenlife
阅读(515)
评论(0)
推荐(0)
摘要:
Content-disposition 是 MIME 协议的扩展,MIME 协议指示 MIME 用户代理如何显示附加的文件。Content-disposition其实可以控制用户请求所得的内容存为一个文件的时候提供一个默认的文件名,文件直接在浏览器上显示或者在访问时弹出文件下载对话框。 格式说明: 阅读全文
posted @ 2020-03-08 00:22
chenlife
阅读(2155)
评论(0)
推荐(0)
摘要:
POST请求的消息主体放在entity body中,服务端根据请求头中的Content-Type字段来获取消息主体的编码方式,进而进行解析数据。 一、application/x-www-form-urlencoded 最常见的 POST 提交数据的方式,原生Form表单,如果不设置 enctype 阅读全文
posted @ 2020-03-08 00:20
chenlife
阅读(9068)
评论(0)
推荐(0)

浙公网安备 33010602011771号