PHP Classes

File: tests/testFahrenheit.php

Recommend this page to a friend!
  Classes of András Zoltán-Gyárfás   PHP Raspberry PI DS18B20   tests/testFahrenheit.php   Download  
File: tests/testFahrenheit.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: 5 years ago
Size: 277 bytes
 

Contents

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

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

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

var_dump($respone);