原创 git 子模塊移除

git submodule deinit components/lwip/lwip

原创 linux socket 服務器端一直監聽客戶端,每10秒讀一次數據

#include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <arpa/inet.h> #include <sys

原创 git ---打補丁

相關命令行 檢查patch/diff是否能正常打入: git apply --check 【path/to/xxx.patch】 git apply --check 【path/to/xxx.diff】 打入patch/diff

原创 連續的二進制文件以兩位爲單位進行分割

需求: 把二進制文件中類似這樣的內容:436572746966 進行分割爲:43 65 72 74 69 66, #include<stdio.h> main() { FILE * fp; char buffer[3300]

原创 嵌入式 C 編程4字節對其寫法

uint32_t padding_bytes = s_flash_write_size - size; uint8_t *data = (uint8_t *)payload; uint32_t padding

原创 ESP32 燒寫的管腳

原创 esptool.py 流程

esptool.py 流程 預備知識 SLIP Command Response Command Opcodes 流程 8266 stub loader 爲例說明 SLIP(Serial Line IP) 串行線路

原创 esp8266 檢查是否觸發看門狗 demo

/* This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicabl

原创 在 esp32/8266 發送自定義組包帶IE的自定義802.11組包(beacon,probe_req,probe_rsp)demo

/* Simple WiFi Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless

原创 8266 flash

http://wiki.jackslab.org/ESP8266_Flash

原创 函數指針,走過路過來分析一下

void (*fun)(void); void (*fun[10])(void); void (*fun[10])(int,int,void(*)(void*)); void (*(*fun)[10])(int,int,void(

原创 驗證 HTTPS 中 SSL 鏈接

https://www.baidu.com/img/bdlogo.gif http://mimg.127.net/hxm/dashi-home/p/20151107/style/img/newHome/section1/01_l

原创 如何使用 c 語言的二級指針

參考1: https://www.cnblogs.com/reality-soul/p/6372915.html void fun(void) { int tmp = 0; change(tmp);

原创 esp32 作 MCU 端 使用 AT 命令對 esp8266 進行 OTA demo

AT+CUSTOTA=total_len,current_packet_len,offset,checksum OK MCU 收到 > 之後發送 data,當前數據寫入到 FLASH 之後,打印 RECV OK,當接收到 to

原创 二進制文件以兩位爲單位進行分割

需求: 把二進制文件中類似這樣的內容:436572746966 進行分割爲:43 65 72 74 69 66, #include<stdio.h> main() { FILE * fp; char buffer[3300]