Skip to content

Commit 3fcd9b7

Browse files
committed
make socket() private
1 parent c50fcee commit 3fcd9b7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cross/send_data_tcp/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ fn main() -> ! {
177177
port
178178
);
179179
defmt::info!("Hostname: {:?}", tcp_client.server_hostname());
180-
defmt::info!("Socket: {:?}", tcp_client.socket());
181180
defmt::info!("Sending HTTP Document: {:?}", http_document.as_str());
182181
match tcp_client.send_data(&http_document) {
183182
Ok(response) => {

esp32-wroom-rp/src/tcp_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ where
141141
}
142142

143143
/// Sends a string slice of data to a connected server.
144-
pub fn send_data(&mut self, data: &str) -> Result<[u8; ARRAY_LENGTH_PLACEHOLDER], Error> {
144+
fn send_data(&mut self, data: &str) -> Result<[u8; ARRAY_LENGTH_PLACEHOLDER], Error> {
145145
self.protocol_handler
146146
.send_data(data, self.socket.unwrap_or_default())
147147
}

0 commit comments

Comments
 (0)