/**********************************************************************
|
* 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_ ----- */
|