Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] eclipse / paho.mqtt.golang synchronisation

Hi Folks,

I'm hoping I found the right mailing list for my question.
At the following github they said I should use the mailing lists from the
readme.md.

I'm new with golang and want to use the mqtt paho library:
https://github.com/eclipse/paho.mqtt.golang

Now I want to create multiple go routines which uses the same mqtt.Client
to call Publish(...).

Can I do this or need I a mutex (lock und unlock) around of Publish() ?

Or is that a bad Idea and I should use a own mqtt.Client for every go
routine?

Greets
Tim



Back to the top