Commit Graph

29 Commits

Author SHA1 Message Date
Thomas Kohler 3039b2c7cb
test(all): switch to test package stretchr testify (#1006) 2023-10-20 10:27:09 +02:00
Thomas Kohler f5d8d5c601
all(style) : fix linter issues for errcheck, ineffassign, unused and fix errors (#950) 2023-06-12 19:51:25 +02:00
Thomas Kohler 865e724af0
Build(v2): revert move to v2 subfolder (#932)
* revert move to v2 subfolder
* fix CI and adjust CHANGELOG
2023-05-29 19:23:28 +02:00
Thomas Kohler d908619462
Build(v2): fix usage by moving code to a v2 subfolder (#927) 2023-05-22 19:35:36 +02:00
Thomas Kohler 949392d8a7
Fix(core): Semantic Import Versioning for v2 (#921) 2023-05-20 14:25:21 +02:00
Thomas Kohler 16a453248e Update go.mod to 1.17 and all modules incl. code upgrades 2022-10-19 19:32:56 +02:00
Ron Evans 9b97c70ca6 mqtt: make tests run correctly even when a local MQTT server is in fact running
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2019-05-22 11:34:39 +02:00
Trevor Rosen 6c243af895 Allow setting QoS on MTT adaptor
Fixes #644
2019-05-22 11:34:39 +02:00
joek a9c130ea40 Added SetCleanSession
Signed-off-by: joek <info@johannes-engelke.de>
2017-10-09 09:17:42 +02:00
deadprogram e738b40d63 mqtt: improve tests as written
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-05-02 20:39:49 +02:00
deadprogram 37c8c13541 mqtt: improve tests as written
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-05-02 20:34:46 +02:00
deadprogram 868198d2aa mqtt: increase test coverage for adaptor
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-19 10:46:28 +02:00
deadprogram 900d00b3e8 mqtt: increase test coverage for adaptor
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-19 10:30:30 +02:00
Michael Hope 29510498a0 mqtt: change the On handler to take mqtt.Message.
Signed-off-by: Michael Hope <mlhx@google.com>
2017-04-18 19:49:17 +02:00
Michael Hope 58e1a6d74b mqtt: change the On() handler to take the topic as an argument.
This allows wildcard subscriptions.

Signed-off-by: Michael Hope <mlhx@google.com>
2017-04-17 17:31:02 +02:00
deadprogram 1e7deaed7d mqtt: increase test coverage
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-06 10:55:06 +02:00
deadprogram 953c3254e7 core: use canonical import domain of gobot.io for all code
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-08 13:24:03 +01:00
deadprogram c76557aaee core: better use of hashicorp/go-multierror for Travis builds
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-07 21:29:52 +01:00
deadprogram 2cf61532bf core: update MQTT platform to simply return error
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-07 21:29:52 +01:00
deadprogram 17cc57d9d1 core: Refactor MQTT platform for new Adaptor creation signature
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-26 10:13:37 +02:00
Damian Gryski b5083e67d3 Move interface assertions to test files.
In general, these shouldn't live in the package proper, since they're
actually tests.
2016-07-13 11:04:30 -06:00
gmarik e494b9fb99 Refactor to use `gobottest` test helpers 2016-02-22 00:33:58 -05:00
Adrian Zankich bc8bb36f8f Update mqtt package for latest paho mqtt api compatibility 2015-04-06 15:35:11 -07:00
Adrian Zankich 586507a489 Update Adaptor and Driver interface to use []error 2014-11-19 23:21:35 -08:00
Adrian Zankich abc1f0b201 Update platforms to support the new Driver and Adaptor interfaces 2014-11-16 12:25:48 -08:00
Adrian Zankich ce7181741f Add constructor clientid parameter and set proper datatype for On callback function 2014-11-06 12:28:04 -08:00
deadprogram 71061cdd7f Add a few checks and tests 2014-11-04 08:33:05 -08:00
deadprogram 49c633ad3d WIP on mqtt support 2014-11-03 18:56:33 -08:00
deadprogram 5ffc43580f Initial skeleton for mqtt platform 2014-11-03 18:30:56 -08:00