From 985ec56e2ad3d3760ebe060daf88556032268fe9 Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Fri, 10 Jun 2022 01:32:52 +0200 Subject: [PATCH] print driven development --- src/main.rs | 7 ++++++- src/modem.rs | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/modem.rs diff --git a/src/main.rs b/src/main.rs index 4a89adb..2c01ecb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,10 @@ +mod modem; + use esp_idf_sys as _; // If using the `binstart` feature of `esp-idf-sys`, always keep this module imported fn main() { - println!("Hello, world!"); + println!("Starting GPRS ..."); + // TODO: start sim module + // TODO: connect to GPRS + println!("GPRS started ..."); } diff --git a/src/modem.rs b/src/modem.rs new file mode 100644 index 0000000..b9294bd --- /dev/null +++ b/src/modem.rs @@ -0,0 +1,3 @@ +pub struct Modem { + // TODO: connect to GPRS +}