File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
libraries/MySensors/examples/DallasTemperatureSensor Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 33
33
#define MAX_ATTACHED_DS18B20 16
34
34
unsigned long SLEEP_TIME = 30000 ; // Sleep time between reads (in milliseconds)
35
35
OneWire oneWire (ONE_WIRE_BUS); // Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs)
36
- DallasTemperature sensors (&oneWire); // Pass our oneWire reference to Dallas Temperature.
36
+ DallasTemperature sensors (&oneWire); // Pass the oneWire reference to Dallas Temperature.
37
37
MySensor gw;
38
38
float lastTemperature[MAX_ATTACHED_DS18B20];
39
39
int numSensors=0 ;
@@ -45,10 +45,10 @@ MyMessage msg(0,V_TEMP);
45
45
void setup ()
46
46
{
47
47
// Startup up the OneWire library
48
- sensors.begin ();
48
+ sensors.begin ();
49
49
50
50
// Startup and initialize MySensors library. Set callback for incoming messages.
51
- gw.begin ();
51
+ gw.begin ();
52
52
53
53
// Send the sketch version information to the gateway and Controller
54
54
gw.sendSketchInfo (" Temperature Sensor" , " 1.0" );
You can’t perform that action at this time.
0 commit comments