stm32 rfid识别并将数据传至onenet
单片机源程序如下:
- /* Includes ------------------------------------------------------------------*/
- //USE_STDPERIPH_DRIVER, STM32F10X_HD, USE_STM3210B_EVAL
- /***头文件调用****/
- #include "stm32f10x.h"
- #include "stdio.h"
- #include "stdlib.h"
- #include "string.h"
- #include "usart1.h"
- #include "usart2.h"
- #include "utils.h"
- #include "esp8266.h"
- #include "hal_i2c.h"
- int main(void)
- {
- USART1_Init();
- USART2_Init();
- mDelay(1000);
- Hal_I2C_Init();
- /*初始化8266,并连接CWJAP配置的AP,与MQTT_CIPSTART配置的服务器建立TCP连接*/
- ESP8266_Init((int8_t *)MQTT_CIPSTART, (int8_t *)CWJAP);
- }
- /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
复制代码
所有资料51hei提供下载:
rfid识别.7z
(1.11 MB, 下载次数: 21)
|