32#ifndef _LTE_TLS_CLIENT_H_
33#define _LTE_TLS_CLIENT_H_
36#error "LTETLSClient library is NOT supported by SubCore."
146 size_t write(
const uint8_t *buf,
size_t size);
190 int read(uint8_t *buf,
size_t size);
276 void setCACert(
const unsigned char *rootCA,
size_t size);
445 size_t _clientCASize;
447 size_t _privateKeySize;
451 uint32_t _writeTimeout;
SPRESENSE Arduino File library.
The File class allows for reading from and writing to individual files on the File System.
Definition: File.h:55
[en] Create a secure client that can connect to a specific Internet IP address and port....
Definition: LTETLSClient.h:66
void setCACert(const unsigned char *rootCA, size_t size)
Set the root certificate authority certificate on the client.
int setTimeout(uint32_t milliseconds)
Set the timeout when the client receive (including TLS handshake).
int available()
Returns the number of bytes available for reading.
int connect(IPAddress ip, uint16_t port)
Connects to a specified IP address and port.
void setPrivateKey(Stream &stream, size_t size)
Read the private key from the file or other stream and set it on the client.
void setCACert(File &f, size_t size)
Read the root certificate authority certificate from the file and set it on the client.
void setPrivateKey(const char *privateKey)
Set the private key on the client.
void setCertificate(File &f, size_t size)
Read the certificate from the file and set it on the client.
void setCertificate(const unsigned char *clientCA, size_t size)
Set the certificate on the client.
void stop()
Disconnect from the server.
int connect(const char *host, uint16_t port)
Connects to a specified host name and port.
size_t write(const uint8_t *buf, size_t size)
Send series of bytes data to the server the client is connected to.
void setCertificate(const char *clientCA)
Set the certificate on the client.
uint8_t connected()
Whether or not the client is connected.
void setPrivateKey(const unsigned char *privateKey, size_t size)
Set the private key on the client.
int setSendTimeout(uint32_t milliseconds)
Set the timeout when the client send.
void setCACert(const char *rootCA)
Set the root certificate authority certificate on the client.
void setCertificate(Stream &stream, size_t size)
Read the certificate from the file or other stream and set it on the client.
int read()
Read the next byte received from the server the client is connected to.
~LTETLSClient()
Destruct LTETLSClient instance.
void flush()
Discards any bytes that have been written to the client.
int peek()
Returns the next byte received from the server without removing it from the buffer.
void setPrivateKey(File &f, size_t size)
Read the private key from the file and set it on the client.
size_t write(uint8_t val)
Send one byte data to the server the client is connected to.
LTETLSClient()
Construct LTETLSClient instance.
int read(uint8_t *buf, size_t size)
Read series of bytes received from the server the client is connected to.
void setCACert(Stream &stream, size_t size)
Read the root certificate authority certificate from the file or other stream and set it on the clien...
Definition: TLSClient.h:39