Add comments on TCP client development

master
linuswck 2024-02-28 12:54:21 +08:00
parent 6fc800e562
commit 46393bacdb
1 changed files with 4 additions and 0 deletions

View File

@ -163,6 +163,10 @@ pub struct TecSetICmd {
json: TecSetICmdJson
}
/// Miniconf is very slow in debug builds (~3-4ms of cmd decoding time).
/// Make sure kirdy's firmware is flashed with release builds.
/// The received message must contain only one json cmd. TCP client should set TCP_NODELAY or equivalent flag in its TCP Socket
/// Settings to avoid unwanted buffering on TX Data and minimize TX latency.
pub fn execute_cmd(buffer: &mut [u8], buffer_size: usize, mut laser: LdDrive, mut tec: Thermostat, mut device_settings: DeviceSettings)->(LdDrive, Thermostat, bool, DeviceSettings){
let mut should_reset = false;