esp8266-wifi-serial

Crates.ioesp8266-wifi-serial
lib.rsesp8266-wifi-serial
version0.1.3
sourcesrc
created_at2021-07-28 12:42:12.100586
updated_at2021-08-02 19:40:35.510821
descriptionA driver to work with the esp8266 module over the serial port.
homepage
repositoryhttps://github.com/alekseysidorov/esp8266-wifi-serial
max_upload_size
id428337
size52,527
Aleksey Sidorov (alekseysidorov)

documentation

https://docs.rs/esp8266-wifi-serial/

README

Continuous integration Crates.io API reference

esp8266-wifi-serial

(WIP) Driver to work with the esp8266 module over the serial port.

By using this module you can join the existing access point or creating your own. After a network creation, the module can both listen to incoming TCP connections or connect to other sockets.

let mut module = Module::new(rx, tx, clock).expect("unable to create module");
// Create a new access point.
let mut session = SoftApConfig {
    ssid: "test_network",
    password: "12345678",
    channel: 4,
    mode: WifiMode::Open,
}
.start(module)
.expect("unable to start network sesstion");
// Start listening for incoming connections on the specified port.
session.listen(2048).unwrap();
// Start an event loop.
loop {
    let event = nb::block!(session.poll_network_event()).expect("unable to poll network event");
    // Some business logic.
}

Warning: this library is not finished yet and it is not worth using it in mission-critical software, it can burn your hamster.

The crate was been tested with the gd32vf103 board.

I will be happy to see new contributions to the development of this crate.

Commit count: 31

cargo fmt