目录

工欲善其事

实践出真知

活跃标签: linux java mysql 待分类 js springboot win10 电路 vue macOS nginx esp32 git docker windows idea maven esp8266 python Arduino

存档:

存档: 2022 年 09 月 (4)

esp32s 蓝牙探针

1、蓝牙探针有效距离为10米,决定了近场场景,且采集的mac地址也会出现假的,iphone xr是这样的,可以采集到小米手环,其它机型测试并不灵敏,没发现采集到 2、开发环境 配置“开发板管理器地址”:https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json #define SCAN_TIME 60 // seconds #include <Arduino.h> #include <sstream> #include <BLEDevice.h> #include <BLEUtils.h> #include <BLEScan.h> #include <BLEAdvertisedDevice.h> std::stringstream ss; class MyAdvertisedDeviceCallbacks : public BLEAdvertisedDeviceCallbacks { void....

nginx Rewrite(重写地址)

一、[Nginx] 正则表达式 常用的正则表达式元字符 字符说明 ^匹配输入字符串的起始位置 $匹配输入字符串的结束位置 *匹配前面的字符零次或多次 +匹配前面的字符一次或多次 ?匹配前面的字符零次或一次 .匹配除“\n”之外的任何单个字符 \将后面接着的字符标记为一个特殊字符或一个原义字符或一个向后引用 \d匹配纯数字 {n}重复n次 {n,m}重复n次或更多次 [ ]定义匹配的字符范围 [c]匹配单个字符c [a-z]匹配a-z小写字母的任意一个 [a-zA-Z]匹配a-z小写字母或A-Z大写字母的任意一个 ()表达式的开始和结束位置 l或运算符 从功能看 rewrite 和 location 似乎有点像,都能实现跳转,主要区别在于 rewrite 是在同一域名内更改获取资源的路径,而 location 是对一类路径做控制访问或反向代理,还可以proxy_pass 到其他机器。 二、location 2.1、location大致可以分为三类 精确匹配:location = / { … } 一般匹配:location / { … } 正则匹配:location ~ / { … } 2....

玩转 【ESP32】

该文章已经加密。

sata电源接口解析

Serial ATA Power connector sata硬盘的电源接口有用的有2对,分别是5v电源和12V电源,但是我在部分设备中发现电源11号引脚Gnd貌似有特殊的用处。 网上查到资料如下: Pins 1, 2, and 3 are optional. Pins 3, 7, 13 and Ground are longer on the plug so they connect first. Pin 11 can be used for activity indication, staggered spin-up, both, or nothing.