Last change
on this file since 457 was 457, checked in by coas-nagasima, 4 years ago |
ファイルを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-chdr;charset=UTF-8
|
File size:
1002 bytes
|
Rev | Line | |
---|
[457] | 1 | // Copyright (c) Microsoft. All rights reserved.
|
---|
| 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
---|
| 3 |
|
---|
| 4 | #ifndef ESP_AT_SOCKET_H
|
---|
| 5 | #define ESP_AT_SOCKET_H
|
---|
| 6 |
|
---|
| 7 | #ifdef __cplusplus
|
---|
| 8 | extern "C" {
|
---|
| 9 | #endif
|
---|
| 10 |
|
---|
| 11 | typedef void* ESP_AT_SOCKET_HANDLE;
|
---|
| 12 |
|
---|
| 13 | ESP_AT_SOCKET_HANDLE esp_at_socket_create(bool ssl);
|
---|
| 14 | void esp_at_socket_set_blocking(ESP_AT_SOCKET_HANDLE espAtSocketHandle, bool blocking, unsigned int timeout);
|
---|
| 15 | void esp_at_socket_destroy(ESP_AT_SOCKET_HANDLE espAtSocketHandle);
|
---|
| 16 | int esp_at_socket_connect(ESP_AT_SOCKET_HANDLE espAtSocketHandle, const char* host, const int port);
|
---|
| 17 | bool esp_at_socket_is_connected(ESP_AT_SOCKET_HANDLE espAtSocketHandle);
|
---|
| 18 | void esp_at_socket_close(ESP_AT_SOCKET_HANDLE espAtSocketHandle);
|
---|
| 19 | int esp_at_socket_send(ESP_AT_SOCKET_HANDLE espAtSocketHandle, const char* data, int length);
|
---|
| 20 | int esp_at_socket_receive(ESP_AT_SOCKET_HANDLE espAtSocketHandle, char* data, int length);
|
---|
| 21 |
|
---|
| 22 | #ifdef __cplusplus
|
---|
| 23 | }
|
---|
| 24 | #endif
|
---|
| 25 |
|
---|
| 26 | #endif /* ESP_AT_SOCKET_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.