引入mqtt 引入cjson

This commit is contained in:
2584532475@qq.com committed 2023-11-30 08:10:01 +08:00
1 parent a69c1a58d6
commit f8591b8b99
86 files changed
+12141 -2157

No files matched your search

+12 -4
View File
@@ -3,18 +3,26 @@
#include <stdint.h>
typedef union {
typedef union
{
uint32_t data;
char byte[4];
} Int;
typedef union {
typedef union
{
float data;
char byte[4];
} Float;
float Bytes2Float(char * data);
float Bytes2Float (char * data);
uint32_t Bytes2Int (char * data);
int hexstr_to_hexbyte (char *src, char *obj, uint16_t length);
float iee754_to_float (char * data);
uint32_t byte_to_Inverse(char * data);
// 754 תfloat
float float_to_iee754 (float ff1,char * data);
#endif
#endif