blob: c5e43da548400229d1c907c23d69ecfe0b2a4037 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <stm32f0xx_hal.h>
#include <FreeRTOS.h>
#include <task.h>
#include "server.h"
#include "setup.h"
void ws_test_write_task() {
// 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_server_send(cmd1, sizeof(cmd1));
ws_server_send(cmd2, sizeof(cmd2));
ws_server_send(cmd3, sizeof(cmd3));
vTaskDelay(portTICK_PERIOD_MS * 1000 * 1);
}
}
|