aboutsummaryrefslogtreecommitdiff
path: root/stm32f091/esp8266.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-27 17:42:54 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-27 17:42:54 +0200
commitdd1d0cf34a44f70793dcb52fd9ef90d9274b55d1 (patch)
treea88d6a1161c4a14aa7387a976bdd1833f029f077 /stm32f091/esp8266.h
parent12704850c9f4cf7410ecf85116da9d23fc2ce6d6 (diff)
move esp setup to setup.c
Diffstat (limited to 'stm32f091/esp8266.h')
-rw-r--r--stm32f091/esp8266.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/stm32f091/esp8266.h b/stm32f091/esp8266.h
index 64910fd..66ccfba 100644
--- a/stm32f091/esp8266.h
+++ b/stm32f091/esp8266.h
@@ -25,18 +25,17 @@ void HAL_UART_RxCpltCallback(UART_HandleTypeDef* huart);
/** @brief send data to esp over uart with dma */
void ws_esp8266_send(uint8_t* data, size_t size);
+/** @brief start dma receive and reset half-transfer interrupt flag */
void ws_esp8266_start_receive();
-// TODO: remove/update/document/refactor these functions
-void ws_esp8266_ATsendCommand(uint8_t* data);
-int ws_esp8266_checkOK(uint8_t *receiveData,int length);
-int ws_esp8266_receivingMsg(uint8_t *receiveData,int length);
-int ws_esp8266_unlink(uint8_t *receiveData,int length);
-void ws_esp8266_StartEsp();
-void ws_esp8266_disconnect();
-void ws_esp8266_mode();
+/** @brief connect to access point using wifi.h credentials */
void ws_esp8266_connect();
-void ws_esp8266_serveraan();
-void ws_esp8266_serveruit();
-void ws_esp8266_mux();
-void ws_esp8266_close();
+/** @brief set esp to access point client mode (connect to AP, not become one) */
+void ws_esp8266_ap_client_mode();
+/** @brief initialize and configure the tcp server */
+void ws_esp8266_start_tcp_server();
+
+/** @brief set mac address of the esp client */
+void ws_esp8266_set_mac();
+/** @brief set static ip address of the esp client */
+void ws_esp8266_set_ip();