1 /* 2 * Copyright (c) 2022 Rodrigo Peixoto <rodrigopex@gmail.com> 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 #ifndef _MESSAGES_H_ 6 #define _MESSAGES_H_ 7 #include <stdint.h> 8 9 struct version_msg { 10 uint8_t major; 11 uint8_t minor; 12 uint16_t build; 13 }; 14 15 struct sensor_msg { 16 uint32_t temp; 17 uint32_t press; 18 uint32_t humidity; 19 }; 20 21 #endif /* _MESSAGES_H_ */ 22