MQTT Arduino Nano and Nanoethernetboard V1.0 ENC28j60

Hi pylon. About your information:

Blockzitat
You have to use the external IP for this command to make any sense. So forget the 127.0.0.1 for everything that should work also outside that machine.
The command is

telnet <external IP address> 1883

  • should I connect from another pc with telnet to the host (192.168.0.1, machine with Mosquito), or try telnet from the host with it's own static ipadress 192.168.0.1instead of 127.0.0.1 ??

  • I tried it with 127.0.0.1, then a black window opend. Is that correct? Could I something see like the subscribed messages, but how I send and publish it, with a second telnet session?? And in right way I should use the static ip 192.168.0.1 to see if the funcionality is right

Hi pylon, ok, it seems there is a connection problem with telnet:

I installed there: mosquitto-2.0.15-install-windows-x64.exe

Here a second test in commandline without TELNET:

What do you think?

It is something in the .conf file of Mosqitto, but normally I start it without arguments ...

Hi there, now it's working. Fine and super !!! The Mosquitto.conf must be correct edited (Listener 1883, Allow anonymous yes)

But be careful with ENC28j60 you need the <EthernetENC.h> otherwise you get with DHCP ipadress 5.0.0.0 setted.

But how can I disable DHCP, then I have more memory.

you don't use DHCP.
you can disable UDP. the link is in comment #4

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.