* Add MQTT forwarder
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Cleanup forwarder code
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use MQTT Publisher in MQTT forwarder
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Cleanup MQTT messaging
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add Paho client timeout errors
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Simplify MQTT fowarder
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix naming in main method
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use interface and struct instead of function
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use Mainflux errors package
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename `tkn` to `token`
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use "/" instead of "." as topic separator
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use async MQTT Publisher
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix timeout errors messages
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add connect token check
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename package alias
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>