/*
|
* Copyright (c) 2022 Avnet
|
* Author: Guo Wenxue <wenxue.guo@avnet.com>
|
*
|
* This library is free software; you can redistribute it and/or modify it
|
* under the terms of the GPL license.
|
*/
|
|
#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_ ----- */
|