misc + implement tcp receive in buffer
needed for the TcpClientStack in minimq
This commit is contained in:
parent
481805a1d1
commit
1ea0bf62e5
3 changed files with 74 additions and 54 deletions
|
@ -239,9 +239,9 @@ impl Command {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn tcp_ssl_disable() -> Command {
|
||||
pub fn tcp_ssl_set(enabled: bool) -> Command {
|
||||
Command {
|
||||
text: "AT+CIPSSL=0".to_string(),
|
||||
text: format!("AT+CIPSSL={}", if enabled { 1 } else { 0 }),
|
||||
timeout: Duration::from_millis(3000),
|
||||
contains: Some("OK".to_string()),
|
||||
}
|
||||
|
@ -319,7 +319,7 @@ impl Command {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn tcp_receive_query_len() -> Command {
|
||||
pub fn tcp_receive_reply_len() -> Command {
|
||||
Command {
|
||||
text: "AT+CIPRXGET=4".to_string(),
|
||||
timeout: Duration::from_millis(3000),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue