pub fn remaining_write_capacity(port: i32) -> Result<usize, EspError>