diff --git a/src/Entities/FbBusConnector.php b/src/Entities/FbBusConnector.php index 03bdfd7..bfd8530 100644 --- a/src/Entities/FbBusConnector.php +++ b/src/Entities/FbBusConnector.php @@ -86,7 +86,7 @@ public function setAddress(?int $address): void */ public function getInterface(): string { - $interface = $this->getParam('serial_interface', '/dev/ttyAMA0'); + $interface = $this->getParam('interface', '/dev/ttyAMA0'); return $interface ?? '/dev/ttyAMA0'; } @@ -96,7 +96,7 @@ public function getInterface(): string */ public function setinterface(?string $interface): void { - $this->setParam('serial_interface', $interface); + $this->setParam('interface', $interface); } /** @@ -142,7 +142,7 @@ public function toArray(): array { return array_merge(parent::toArray(), [ 'address' => $this->getAddress(), - 'serial_interface' => $this->getinterface(), + 'interface' => $this->getinterface(), 'baud_rate' => $this->getBaudRate(), 'protocol' => $this->getProtocol()->getValue(), ]); diff --git a/src/Entities/IFbBusConnector.php b/src/Entities/IFbBusConnector.php index b147530..1d15fce 100644 --- a/src/Entities/IFbBusConnector.php +++ b/src/Entities/IFbBusConnector.php @@ -47,11 +47,11 @@ public function setAddress(?int $address): void; public function getInterface(): string; /** - * @param string|null $serialInterface + * @param string|null $interface * * @return void */ - public function setInterface(?string $serialInterface): void; + public function setInterface(?string $interface): void; /** * @return int