curl implementation

This commit is contained in:
2025-01-16 13:26:07 +01:00
parent 6ca98da28b
commit c42d550acf
4 changed files with 61 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
use std::path::Path;
mod json;
mod curl;
mod serial;
fn main() {
let data_file = Path::new("data.json");
@@ -8,6 +9,7 @@ fn main() {
// some loop for getting data from arduino
// send curl request
let res = curl::curl_request(data);
let res = curl::request(data);
println!("Response code: {res}\n");
}