aboutsummaryrefslogtreecommitdiff
path: root/stm32f091/esp8266.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-28 09:57:50 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-28 09:57:50 +0200
commit1cac46e7701ef2783aea13d55261582f4d91f2fa (patch)
treeabcd22854d5a9c5303cccc5ba1ccca73e7b8bbbf /stm32f091/esp8266.c
parent89e652af2506f7cf7854ce2e6f5b9b97423d1d40 (diff)
working janky protocol!
Diffstat (limited to 'stm32f091/esp8266.c')
-rw-r--r--stm32f091/esp8266.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/stm32f091/esp8266.c b/stm32f091/esp8266.c
index d45954e..db134a0 100644
--- a/stm32f091/esp8266.c
+++ b/stm32f091/esp8266.c
@@ -80,30 +80,3 @@ void ws_esp8266_set_mac() {
void ws_esp8266_set_ip() {
ws_esp8266_send_seq("AT+CIPSTA=\"" WS_ESP8266_WLAN_IP "\"\r\n");
}
-
-// TODO: refactor code from here to EOF
-void ws_esp8266_ATsendCommand(uint8_t* data){
- char dataChar[20];
- uint8_t Tx_send[]="AT+CIPSEND=0,";
-
- itoa(strlen((char*)data),dataChar,10);
- strcat((char*)Tx_send,dataChar);
- strcat((char*)Tx_send,"\r\n");
- HAL_UART_Transmit(&huart1, Tx_send, strlen((char*)Tx_send),1000);
- HAL_Delay(2000);
- HAL_UART_Transmit(&huart1, data, strlen((char*)data),1000);
- HAL_Delay(1000);
- HAL_UART_Transmit(&huart2, data, strlen((char*)data),1000);
- HAL_Delay(5000);
-}
-void ws_esp8266_close(){
-
- uint8_t Tx_close[]="AT+CIPCLOSE=0\r\n";
-
-
- HAL_UART_Transmit(&huart1, Tx_close,strlen((char*)Tx_close), 100);
-
- HAL_Delay(3000);
-
-}
-