凌云物联网实验室ISKBoard(IoT Starter Kits Board)开发板项目源码
guowenxue
2023-04-04 0a714938963508d0a9792481c60863c56dc07e53
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**********************************************************************
*   Copyright: (C)2023 LingYun IoT System Studio
*      Author: GuoWenxue<guowenxue@gmail.com> QQ: 281143292
* Description: ESP32 WiFi/BLE module application API
*
*   ChangeLog:
*        Version    Date       Author            Description
*        V1.0.0  2023.04.3    GuoWenxue      Release initial version
***********************************************************************/
 
#ifndef  _ESP32_H_
#define  _ESP32_H_
 
#include "at-esp32.h"
 
#define DEF_SOFTAP_IPADDR    "192.168.8.1"
#define DEF_SOFTAP_SSID      "Router_ESP32"
#define DEF_SOFTAP_PWD       "12345678"
 
extern int esp32_hwreset(comport_t *comport);
 
extern int esp32_init_module(comport_t *comport);
 
extern int esp32_setup_softap(comport_t *comport, char *ssid, char *pwd);
 
extern int esp32_join_network(comport_t *comport, char *ssid, char *pwd);
 
extern int esp32_check_network(comport_t *comport);
 
extern int esp32_setup_tcp_server(comport_t *comport, int port);
 
extern int esp32_setup_tcp_client(comport_t *comport, char *host, int port);
 
#endif   /* ----- #ifndef _ESP32_H_  ----- */