PHP Classes

File: tests/testCelsius.php

Recommend this page to a friend!
  Classes of András Zoltán-Gyárfás  >  PHP Raspberry PI DS18B20  >  tests/testCelsius.php  >  Download  
File: tests/testCelsius.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Raspberry PI DS18B20
Read values from RaspberryPI DS18B20 sensors
Author: By
Last change:
Date: 2 years ago
Size: 271 bytes
 

Contents

Class file image Download
<?php
require_once __DIR__ . '/../vendor/autoload.php';
use
azolee\DS18B20;
use
azolee\DataFormat\CelsiusDataProcessor;

$dataProcessor = new CelsiusDataProcessor();
$dataProcessor->setPrecision(3);

$respone = DS18B20::loadSensors($dataProcessor);

var_dump($respone);

For more information send a message to info at phpclasses dot org.