aboutsummaryrefslogtreecommitdiff
path: root/stm32f091/esp8266.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-19 22:12:31 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-19 22:12:31 +0200
commited1c1efa7aee67d36a37212c13998318f02c4350 (patch)
tree7cb644f5764620b2fa79320c027f5eea88d8b41f /stm32f091/esp8266.c
parentaab4ed17b94f54813368201d3a0cba3f3d432589 (diff)
moved constants around
Diffstat (limited to 'stm32f091/esp8266.c')
-rw-r--r--stm32f091/esp8266.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stm32f091/esp8266.c b/stm32f091/esp8266.c
index 4c5d0d2..9fccf70 100644
--- a/stm32f091/esp8266.c
+++ b/stm32f091/esp8266.c
@@ -5,6 +5,7 @@
#include "esp8266.h"
#include "setup.h"
+#include "consts.h"
void ws_esp8266_ATsendCommand(uint8_t* data){
char dataChar[20];
@@ -126,7 +127,7 @@ void ws_esp8266_mode(){
HAL_Delay(1000);
}
void ws_esp8266_connect(){
- uint8_t Tx_network[]="AT+CWJAP=\"Test\",\"12345678\"\r\n";
+ uint8_t Tx_network[]="AT+CWJAP=\"" WS_ESP8266_WLAN_SSID "\",\"" WS_ESP8266_WLAN_PASSWD "\"\r\n";
HAL_UART_Transmit(&huart1, Tx_network,strlen((char*)Tx_network),1000);