pub trait GenerateAtCommand {
// Provided methods
fn make_command<'a>(&self) -> &'a [u8] { ... }
fn make_command_buf<'a>(&self, _buffer: &'a mut [u8]) -> &'a [u8] { ... }
}Expand description
Generate AT command
Provided Methods§
Sourcefn make_command<'a>(&self) -> &'a [u8]
fn make_command<'a>(&self) -> &'a [u8]
无需添加缓冲区的命令生成器,以下指令类型必须使用该生成器: 波特率、速率、功率
A command generator that does not require the addition of a buffer, which must be used for the following command types: baudrate, speed, power
Sourcefn make_command_buf<'a>(&self, _buffer: &'a mut [u8]) -> &'a [u8]
fn make_command_buf<'a>(&self, _buffer: &'a mut [u8]) -> &'a [u8]
将缓冲区设置为 hc14 的命令, 以下指令类型必须使用该生成器: 信道
Commands that set the buffer to hc14, the following command types must use this generator:channnel