Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Mosquitto with two interfaces

I am using mosquitto based C program to receive messages and insert the contents into a MySQL database. To test my setup, I break the network connection between the subscriber and the publisher before going home and re-establish it when I am back in the office the next day. Only the first few thousand messages are inserted in the database. This is NOT a mosquitto issue because when I save the messages on a disk file, I am able to see all of the messages sent overnight. Is anybody familiar enough with MySQL's buffers and settings to be able to tell what to fix please?

+90 (530) 410 9807
Ahmet


On Tuesday, 31 March 2020, 13:49:34 GMT+3, Roger Light <roger@xxxxxxxxxx> wrote:


I would suggest that you keep all configuration for a single listener
together, and that you explicitly define all listeners. At the moment
it is difficult to say what your whole configuration looks like. For
example:

```
listener 1883
bind_interface wlan0
```

It's also worth noting that the bind_interface option will only work
with root privileges. If your IP address is fixed you might be better
off using that instead:

```
listener 1883 192.168.50.15
```

Regards,

Roger

On Mon, 30 Mar 2020 at 12:14, informatique
<informatique@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Hello,
>
> i try using mosquitto on a raspberry PI with Raspbian BUSTER
>
> I have two interfaces the first on cable network (eth0) with an IP
> adresse 192.168.1.15. All work's fine with only this address.
>
> And i have a second interface wlan0 with address 192.168.50.15
>
> I have create a file RPI.conf in the subdirectory /etc/mosquitto.conf.d
> with
>
> bind_interface wlan0
>
> And a this point mosquitto doesn't start, if i  delete this file all is OK.
>
> What can i do
>
> Thank's for your help.
>
> --
> François-Marie
>
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mosquitto-dev

_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mosquitto-dev

Back to the top