Add sandbox_c cmake project + ccache workflow for pool testing
This commit is contained in:
1 parent
fb253f9b27
commit
ba41deb9ec
9 files changed
+160
No files matched your search
@@ -0,0 +1,12 @@
|
||||
#ifndef TEMPSENSE_H
|
||||
#define TEMPSENSE_H
|
||||
#include <stddef.h>
|
||||
|
||||
typedef struct { char sensor[32]; double celsius; } Reading;
|
||||
|
||||
double to_fahrenheit(double celsius);
|
||||
int parse_reading(const char *json, Reading *out); /* 0 on success */
|
||||
int format_reading(const Reading *in, char *buf, size_t len);
|
||||
double clamp_to_absolute_zero(double celsius);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user