diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-10-27 15:37:35 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-10-27 15:37:35 +0200 |
commit | 94e31069df88c3d5e50b4160705c2b7aa27e152b (patch) | |
tree | fac20382f2055fc47fdee182b0b12d3dc564a888 /stm32f091/test.c | |
parent | 4dbb57fe63d3c59893d1a670fecdde7ea20c9a4a (diff) |
WIP server parser
Diffstat (limited to 'stm32f091/test.c')
-rw-r--r-- | stm32f091/test.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/stm32f091/test.c b/stm32f091/test.c index e25b071..c5e43da 100644 --- a/stm32f091/test.c +++ b/stm32f091/test.c @@ -2,13 +2,18 @@ #include <FreeRTOS.h> #include <task.h> -#include "esp8266.h" +#include "server.h" +#include "setup.h" void ws_test_write_task() { - uint8_t data[] = "AT\r\n"; + // uint8_t data[] = "AT+CIPMUX=1+CWMODE=1+CWJAP=\"" WS_ESP8266_WLAN_SSID "\",\"" WS_ESP8266_WLAN_PASSWD "\"\r\n"; + uint8_t cmd1[] = "AT+CIPMUX=1\r\n"; + uint8_t cmd2[] = "AT+CWMODE=1\r\n"; + uint8_t cmd3[] = "AT+CWJAP=\"" WS_ESP8266_WLAN_SSID "\",\"" WS_ESP8266_WLAN_PASSWD "\"\r\n"; while (1) { - ws_esp8266_send(data, sizeof(data)); - - vTaskDelay(portTICK_PERIOD_MS * 100 * 1); + ws_server_send(cmd1, sizeof(cmd1)); + ws_server_send(cmd2, sizeof(cmd2)); + ws_server_send(cmd3, sizeof(cmd3)); + vTaskDelay(portTICK_PERIOD_MS * 1000 * 1); } } |