rasProject_01 / weSweetHome  R. 240
process control       /     RasPi software         by   weinert-automation
Loading...
Searching...
No Matches
oneWireDevice_t Struct Reference

A structure for 1-wire devices. More...

#include <we1wire.h>

Data Fields

char contBuf [80]
 read content buffer
 
char name [16]
 short sensor name (8 characters max., 6..8 recommended)
 
int value
 value in mgrdC (1/1000°C)
 
char valueFile [56]
 value file path
 
char valueGrdC [8]
 The value as floating point string. More...
 

Detailed Description

A structure for 1-wire devices.

Field Documentation

◆ valueGrdC

char valueGrdC[8]

The value as floating point string.

This string is equivalent to ((float)value) / 1000.0 formatted right aligned with %6.2f. The bad value will be "-99.9 ". The function getTemp() will provide this strings without floating point arithmetic nor format string parsing. value in grdC (as %6.2f string)


The documentation for this struct was generated from the following file: