Skip to content

dgfiloso/microscurid-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MicroScurid for Rust

Linux example

Configuration

Create file ca-cert.pem and add the certificate to the same folder as the app binary.

Run

$ cd examples/linux
$ cargo run

# Release mode
$ cargo run --release

ESP32S3 example

Configuration

Create the file src/secrets.rs and add the following code, according to your WiFi network, Scurid server IP address and certificate. It is really important that the CA_CERT constant ends in \0.

pub const WIFI_SSID : &str = "ssid";
pub const WIFI_PASSWORD : &str = "password";
pub const SCURID_SERVER : &str = "192.168.20.25";
pub const CA_CERT: &str = "-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----\0";

Build, flash and monitor ESP32S3 example

Tested with the Adafruit ESP32-S3 TFT Feather board.

$ cd examples/esp32s3
$ cargo build
$ espflash flash --flash-size 4mb --monitor target/xtensa-esp32s3-espidf/debug/microscurid-rust-esp32s3

About

Rust implementation for MicroScurid Agent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages