summaryrefslogtreecommitdiff
path: root/localwebsite/classes/GPIORelaydClient.php
blob: 89c8dc96ce3746b0951779c3a1f6507c1b0878f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

class GPIORelaydClient extends MySimpleSocketClient {

    const STATUS_ON = 'on';
    const STATUS_OFF = 'off';

    public function setStatus(string $status) {
        $this->send($status);
        return $this->recv();
    }

    public function getStatus() {
        $this->send('get');
        return $this->recv();
    }

}