上一页 1 2 3 4 5 6 7 ··· 17 下一页
摘要: bitset bitset大概就是类似于bool数组一样的东西 但是它的每个位置只占1bit(特别特别小) bitset的原理大概是将很多数压成一个,从而节省空间和时间(暴力出奇迹) 一般来说bitset会让你的算法复杂度 /32/32(具体是什么要看计算机) 定义与初始化 使用bitset类型需# 阅读全文
posted @ 2020-03-14 07:55 chenlife 阅读(562) 评论(0) 推荐(0)
摘要: String EspClass::getResetReason(void) { const __FlashStringHelper* buff; switch(resetInfo.reason) { // normal startup by power on case REASON_DEFAULT_ 阅读全文
posted @ 2020-03-12 20:53 chenlife 阅读(1005) 评论(0) 推荐(0)
摘要: In this tutorial we will check how to use strings in our protobuf messages, using Nanopb and the Arduino core, running both on the ESP32 and on the ES 阅读全文
posted @ 2020-03-11 19:55 chenlife 阅读(598) 评论(0) 推荐(0)
摘要: https://techtutorialsx.com/2019/06/13/esp8266-spiffs-appending-content-to-file/ ESP8266 SPIFFS: Appending content to file In this tutorial we will lea 阅读全文
posted @ 2020-03-09 23:33 chenlife 阅读(205) 评论(0) 推荐(0)
摘要: mDNS原理的简单理解——每个进入局域网的主机,如果开启了mDNS服务的话,都会向局域网内的所有主机组播一个消息,我是谁,和我的IP地址是多少。然后其他也有该服务的主机就会响应,也会告诉你,它是谁,它的IP地址是多少 MDNS协议介绍 mDNS multicast DNS , 使用5353端口,组播 阅读全文
posted @ 2020-03-09 17:04 chenlife 阅读(1508) 评论(0) 推荐(0)
摘要: bitRead在单片机中使用时比较频繁的,尤其对于数码管以及与数码管类似的存在未操作的器件中使用较多。这里我们详细介绍一下它的使用方法。首先我们来看看在arduino的IDE的参考手册中怎么描述的:DescriptionReads a bit of a number.bitRead用来从数当中读取一 阅读全文
posted @ 2020-03-09 13:27 chenlife 阅读(1560) 评论(0) 推荐(0)
摘要: 名转成对应映射的地址 1.2 DNS server库 ESP8266使用DNS服务(一般和WebServer服务一起使用,WebServer请回顾 ESP8266开发之旅 网络篇⑪ WebServer——ESP8266WebServer库的使用),请在代码中加入以下头文件: #include <DN 阅读全文
posted @ 2020-03-09 13:15 chenlife 阅读(3323) 评论(1) 推荐(1)
摘要: 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 阅读(2575) 评论(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)
上一页 1 2 3 4 5 6 7 ··· 17 下一页