Commit Graph

59 Commits

Author SHA1 Message Date
Trevor Rosen 013817c24c Add some new MQTT adaptor functions with QOS
#644
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
Xing Xing a8a16d05d8 fixed typo 2018-03-14 15:55:54 +13:00
Ron Evans 7ca9db598f docs: update copyright date to 2018
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-02-14 08:24:39 +01:00
joek a9c130ea40 Added SetCleanSession
Signed-off-by: joek <info@johannes-engelke.de>
2017-10-09 09:17:42 +02:00
deadprogram f225a66db9 docs: correct installation instructions to match latest versions
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +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 eb4ce6bda5 mqtt: increase test coverage for driver
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-19 10:59:33 +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 749caed2c1 mqtt: add documentation for Message.
Signed-off-by: Michael Hope <mlhx@google.com>
2017-04-18 19:51:24 +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 0af944edb5 mqtt: update the README to match the new On() prototype.
Signed-off-by: Michael Hope <mlhx@google.com>
2017-04-17 17:33:41 +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
Michael Hope 79bf7a5b01 mqtt: add a (topic, payload) event type.
Used for wildcard subscriptions such as 'device/topic/#'.

Signed-off-by: Michael Hope <mlhx@google.com>
2017-04-16 20:41:49 +02:00
deadprogram 1e7deaed7d mqtt: increase test coverage
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-06 10:55:06 +02:00
deadprogram 5a418d6131 mqtt: use new improved default namer to avoid API conflicts
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-02 15:29:56 +01:00
deadprogram a40a857644 mqtt: add SSL/TLS client options support
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-26 19:14:08 +01:00
deadprogram 01d1bd79f7 mqtt: add SSL/TLS client options support
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-26 19:03:32 +01:00
deadprogram 4b8546f8a7 mqtt: fix #277 by adding SetAutoReconnect method to set Paho MQTT client
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-26 16:21:28 +01:00
deadprogram 52c42a4e57 mqtt: change both 'On' and 'Publish' method function signatures to match Eventer interface
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-26 09:13:35 +01:00
deadprogram e0b39b1144 mqtt: change 'On' method function signature to match expected interface
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-26 07:14:43 +01:00
deadprogram 8ea333125a mqtt: add driver for syntactical sugar around virtual devices
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-25 20:19:15 +01:00
deadprogram 885c829a43 license: update license year to include 2017
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-02 22:25:17 +01:00
deadprogram 2d1057a3f0 docs: correct MQTT README link
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-21 10:53:41 +01: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 19b6c11586 docs: add comments to MQTT adaptor
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-26 18:02:17 +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 900bf1d9ea docs: remove Master unless needed for less code
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-18 21:37:10 +02:00
deadprogram 458c750f33 core: refactor/rename internal name of Master type
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-15 20:02:54 +02:00
deadprogram 07f674955b core: Ensure that all drivers have default names
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-03 19:06:37 +02: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
deadprogram fe057ba6bf misc: update all LICENSE files for current year
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-08-27 13:12:47 +02:00
Ron Evans 278a96c97d Merge pull request #293 from dgryski/misspell
Fix misspellings
2016-07-15 08:34:00 -06: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
Damian Gryski a8ea32ce56 Fix misspellings 2016-07-13 10:44:47 -06:00
Stas Turlo a3051c0fcf Add MQTT authentication support 2016-03-23 17:58:13 +03:00
gmarik e494b9fb99 Refactor to use `gobottest` test helpers 2016-02-22 00:33:58 -05:00
deadprogram 7c355b8dcd Update MQTT README for latest info 2016-02-17 12:25:15 -08:00
deadprogram 920c38482f Default the new MQTT 'AutoReconnect' to false 2016-02-17 12:25:15 -08:00
deadprogram be03938851 Corrected dependency install instructions for all current platforms 2015-07-08 16:03:20 -07:00
Adrian Zankich bc8bb36f8f Update mqtt package for latest paho mqtt api compatibility 2015-04-06 15:35:11 -07:00
deadprogram d884299c90 Merge branch 'master' into dev 2014-12-13 18:46:31 -08:00
nathan 4091681da6 update readmes for import script 2014-12-12 10:32:52 -08:00
Adrian Zankich 58dd2923df Refactor mqtt to use new adaptor interface 2014-11-28 17:58:16 -08: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