commit | author | age
|
d6b4a7
|
1 |
/********************************************************************************* |
G |
2 |
* Copyright: (C) 2023 LingYun IoT System Studio. |
|
3 |
* All rights reserved. |
|
4 |
* |
|
5 |
* Filename: esp32.h |
|
6 |
* Description: This file is ESP32 high level logic API functions |
|
7 |
* |
|
8 |
* Version: 1.0.0(11/08/23) |
|
9 |
* Author: Guo Wenxue <guowenxue@gmail.com> |
|
10 |
* ChangeLog: 1, Release initial version on "11/08/23 16:18:43" |
|
11 |
* |
|
12 |
********************************************************************************/ |
|
13 |
|
|
14 |
#ifndef _ESP32_H_ |
|
15 |
#define _ESP32_H_ |
|
16 |
|
|
17 |
#include "at-esp32.h" |
|
18 |
|
|
19 |
#define DEF_SOFTAP_IPADDR "192.168.8.1" |
|
20 |
#define DEF_SOFTAP_SSID "Router_ESP32" |
|
21 |
#define DEF_SOFTAP_PWD "12345678" |
|
22 |
|
|
23 |
extern int esp32_init_module(comport_t *comport); |
|
24 |
|
|
25 |
extern int esp32_setup_softap(comport_t *comport, char *ssid, char *pwd); |
|
26 |
|
|
27 |
extern int esp32_join_network(comport_t *comport, char *ssid, char *pwd); |
|
28 |
|
|
29 |
extern int esp32_check_network(comport_t *comport); |
|
30 |
|
|
31 |
extern int esp32_setup_tcp_server(comport_t *comport, int port); |
|
32 |
|
|
33 |
extern int esp32_setup_tcp_client(comport_t *comport, char *host, int port); |
|
34 |
|
|
35 |
#endif /* ----- #ifndef _ESP32_H_ ----- */ |