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)
2019-6-14 22:29 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
|