凌云物联网实验室ISKBoard(IoT Starter Kits Board)开发板项目源码
guowenxue
2023-04-03 32806da6f5647ac637fa7d48aa9c221b091ab35e
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
/*
 * 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_  ----- */