/*********************************************************************************
|
* Copyright: (C) 2023 LingYun IoT System Studio.
|
* All rights reserved.
|
*
|
* Filename: esp32.h
|
* Description: This file is ESP32 high level logic API functions
|
*
|
* Version: 1.0.0(11/08/23)
|
* Author: Guo Wenxue <guowenxue@gmail.com>
|
* ChangeLog: 1, Release initial version on "11/08/23 16:18:43"
|
*
|
********************************************************************************/
|
|
#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_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_ ----- */
|