PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Network
libwifi
stop.c
1
/*
2
@file close.c
3
4
@author Andy Lindsay
5
6
@version 0.80 for firmware 1.0
7
8
@copyright
9
Copyright (C) Parallax, Inc. 2017. All Rights MIT Licensed.
10
11
@brief API for the Parallax WX Wi-Fi Module ESP8266-WROOM-02.
12
*/
13
14
15
#include "
simpletools.h
"
16
#include "
fdserial.h
"
17
#include "
wifi.h
"
18
19
20
int
wifi_replyStringIn(
int
maxByteCount);
21
void
wifi_replyStringDisplay(
char
*s);
22
void
wifi_simpletermSuspend(
void
);
23
void
wifi_simpletermResume(
void
);
24
25
26
fdserial
*wifi_fds;
27
int
wifi_pin_do;
28
int
wifi_pin_di;
29
int
wifi_baud;
30
int
wifi_comSelectPin;
31
32
int
simpleterm_toRxDi;
33
int
simpleterm_fromTxDo;
34
int
wifi_msReplyTimeout;
35
36
char
wifi_event;
37
char
wifi_status;
38
int
wifi_id;
39
int
wifi_handle;
40
41
int
wifi_timeoutFlag;
42
43
char
*wifi_buf;
44
int
wifi_buf_size;
45
46
47
void
wifi_stop
(
void
)
48
{
49
#ifdef WIFI_DEBUG
50
print
(
"wifi_close\r"
);
51
#endif //WIFI_DEBUG
52
53
fdserial_close
(wifi_fds);
54
free(wifi_buf);
55
56
wifi_pin_do = 0;
57
wifi_pin_di = 0;
58
wifi_baud = 0;
59
wifi_comSelectPin = -100;
60
61
simpleterm_fromTxDo = 0;
62
simpleterm_toRxDi = 0;
63
}
64
65
wifi.h
API for the Parallax WX Wi-Fi Module ESP8266-WROOM-02 (Part #32420). This library has a preliminary A...
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
fdserial_close
void fdserial_close(fdserial *term)
Stop stops the cog running the native assembly driver.
Definition:
fdserial.c:115
print
int print(const char *format,...) __attribute__((format(printf
Print format "..." args to the default simple terminal device. The output is limited to 256 bytes.
text_struct
Structure that contains data used by simple text device libraries.
Definition:
simpletext.h:81
wifi_stop
void wifi_stop(void)
Stops the process started by wifi_start and recovers any memory that was allocated for command/reply ...
Definition:
stop.c:47
fdserial.h
This library supports creating and managing one or more full duplex serial connections with periphera...
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17