From f3c8d8d9a3f2cc176ce84d847bb2dbb9d38f5a93 Mon Sep 17 00:00:00 2001 From: Conner Date: Sun, 13 Oct 2024 21:05:19 +0200 Subject: [PATCH] typedef --- .gitignore | 2 +- embedded/main/apple.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index eea6179..a2c7af8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /target -/build +/embedded/build /.idea \ No newline at end of file diff --git a/embedded/main/apple.c b/embedded/main/apple.c index 76d1247..70ed3ac 100644 --- a/embedded/main/apple.c +++ b/embedded/main/apple.c @@ -26,11 +26,11 @@ uint8_t target[6] = {0xBC, 0xDD, 0xC2, 0x82, 0x82, 0x9E}; typedef struct { - char char_value[30]; - int int_value; - float float_value; - bool bool_value; -} example_message_t; + uint8_t mac[6]; + float temperature; + float battery_voltage; + unsigned long up_time; +} sensor_message_t; void app_main(void) {