typedef
This commit is contained in:
parent
07f37b7426
commit
f3c8d8d9a3
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,3 @@
|
|||
/target
|
||||
/build
|
||||
/embedded/build
|
||||
/.idea
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue