Please close the issue and sorry for disturbing - it was simply my fault.
Needless to say it was my fault - I need to call
Net::MQTT::Simple::Auth->new to get the connection with authentication, not
Net::MQTT::Simple.
Greetings, Christian
Am Mi., 14. Nov. 2018 um 08:42 Uhr schrieb Bugs in Net-MQTT-Simple-Auth via
RT <bug-Net-MQTT-Simple-Auth@rt.cpan.org>:
Show quoted text>
> Greetings,
>
> This message has been automatically generated in response to the
> creation of a trouble ticket regarding:
> "Inappropriate ioctl for device",
> a summary of which appears below.
>
> There is no need to reply to this message right now. Your ticket has been
> assigned an ID of [rt.cpan.org #127637]. Your ticket is accessible
> on the web at:
>
>
https://rt.cpan.org/Ticket/Display.html?id=127637
>
> Please include the string:
>
> [rt.cpan.org #127637]
>
> in the subject line of all future correspondence about this issue. To do
> so,
> you may reply to this message.
>
> Thank you,
> bug-Net-MQTT-Simple-Auth@rt.cpan.org
>
> -------------------------------------------------------------------------
> Hello Manuel,
>
> I use the Net::MQTT::Simple::Auth (latest code from cpan) trying to
> implement authentication on MQTT::Simple.
>
> When I connect with credentials, I get "Inappropriate ioctl for device",
> using username and pass (no special chars etc.).
>
> My call is (NOT WORKING)
> $mqtt = Net::MQTT::Simple->new($cfg->{Main}{brokeraddress}, "loxberry",
> "loxberry");
>
> Disabling auth on Mosquitto, the usual call is working:
> $mqtt = Net::MQTT::Simple->new($cfg->{Main}{brokeraddress});
>
>
> Server is Mosquitto - Mosquitto's auth is working, tested with
> mosquitto_sub and credentials:
> mosquitto_sub -h localhost -u loxberry -P loxberry -t shellies/#
>
> Do you know what the message says in the connect context?
>
> Thanks,
> Christian
>
--
Christian Fenzl
0664/6250025