We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fcd9b7 commit 36d9b31Copy full SHA for 36d9b31
esp32-wroom-rp/src/tcp_client.rs
@@ -136,12 +136,12 @@ where
136
137
// TODO: Make this non-public
138
/// Returns `Socket` reference set by calling `get_socket()`
139
- pub fn socket(&self) -> Socket {
+ fn socket(&self) -> Socket {
140
self.socket.unwrap()
141
}
142
143
/// Sends a string slice of data to a connected server.
144
- fn send_data(&mut self, data: &str) -> Result<[u8; ARRAY_LENGTH_PLACEHOLDER], Error> {
+ pub fn send_data(&mut self, data: &str) -> Result<[u8; ARRAY_LENGTH_PLACEHOLDER], Error> {
145
self.protocol_handler
146
.send_data(data, self.socket.unwrap_or_default())
147
0 commit comments