socket温度上报练习

socket温度上报练习 通过读取文件“t=”后的内容/1000得到实时温度 文件io操作: //读取温度值 int get_temper(float *temp,FILE *fp) //FILE参数用于记录日志 { int fd; char *ptr; int rd; char buf[1024]; char file_path[50] = TPATH; DIR *dirp; s
相关文章
相关标签/搜索