hilvarenbeek / nl.marcovandenhout.marantz

Marantz driver for Homey
MIT License
8 stars 7 forks source link

added socket for app support #18

Closed ReinierH closed 5 years ago

ReinierH commented 6 years ago

Currently it's not possible to use the Android or Iphone app along with the Homey app because the Marantz device only allows one tcp connection to the telnet port. When the homey app starts it immediately connects to the marantz device and locks out any other device that wants to connect to that particular port.

To fix this problem I've added a tcp server to the homey app which socket is piped to the avr tcp socket. In this way you're still able to use the app.

The only thing you have to change is setting the ip address and port in the Android or Iphone app to

<< IP address >>:5000

Example: 192.168.0.58:5000

hilvarenbeek commented 5 years ago

I tried to apply the changes to the beta version, but can't get it to work. Firstly, it fails if you have more than one device (tries to open the same server multiple times), but even if you have only one device I couldn't get it to accept a connection on the external port of the Homey (port 5000, tried 5001 as well).

correction: it wasn't the beta (1.0.2) but master (1.0.1)