pub fn new(sn: Sn, src_port: u16, server: SocketAddrV4) -> Self {
        Self {
            sn,
            src_port,
            server,
            state_timeout: StateTimeout {
                state: State::Init,
                timeout: None,
            },
            client_id: None,
            pkt_id: 1,
        }
    }
/// Create a new MQTT client.
///
/// # Arguments
///
/// * `sn` - The socket number to use for MQTT.
/// * `src_port` - The MQTT source port, this is typically [`SRC_PORT`].
/// * `server` - The IP address and port for the MQTT server.
///
/// # Example
///
/// ```
/// use w5500_mqtt::{
///     ll::{
///         net::{Ipv4Addr, SocketAddrV4},
///         Sn,
///     },
///     Client, DST_PORT, SRC_PORT,
/// };
///
/// let client: Client = Client::new(
///     Sn::Sn2,
///     SRC_PORT,
///     SocketAddrV4::new(Ipv4Addr::new(192, 168, 5, 6), DST_PORT),
/// );
/// ```
Create a new MQTT client.
Create a new MQTT client .
pub fn new(sn: Sn, src_port: u16, server: SocketAddrV4) -> Self {
        Self {
            sn,
            src_port,
            server,
            state_timeout: StateTimeout {
                state: State::Init,
                timeout: None,
            },
            client_id: None,
            pkt_id: 1,
        }
    }
pub fn new ( sn : Sn , src_port : u16 , server : SocketAddrV4 ) -> Self { Self { sn , src_port , server , state_timeout : StateTimeout { state : State :: Init , timeout : None , } , client_id : None , pkt_id : 1 , } }
Create a new MQTT client.
Create a new MQTT client .
sn
Sn
src_port
u16
server
SocketAddrV4
sn
Sn
src_port
u16
server
SocketAddrV4
example
None