1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-01 13:48:57 +08:00

39 Commits

Author SHA1 Message Date
James Bradshaw
a31d554138 Typo in PublishWithQOS godoc
* `poken.Token` -> `paho.Token`
2020-04-12 21:46:35 +02:00
Vladimir Kotikov
06429046a5 Add method to publish MQTT messages with retain flag 2020-01-14 07:25:03 +01: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
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
joek
a9c130ea40 Added SetCleanSession
Signed-off-by: joek <info@johannes-engelke.de>
2017-10-09 09:17:42 +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
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
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
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
19b6c11586 docs: add comments to MQTT adaptor
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-26 18:02:17 +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
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
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
deadprogram
920c38482f Default the new MQTT 'AutoReconnect' to false 2016-02-17 12:25:15 -08:00
Adrian Zankich
bc8bb36f8f Update mqtt package for latest paho mqtt api compatibility 2015-04-06 15:35:11 -07: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
deadprogram
a9cb290d1f Adding some comments and README 2014-11-04 08:41:56 -08:00
deadprogram
71061cdd7f Add a few checks and tests 2014-11-04 08:33:05 -08:00
deadprogram
618becbf53 Keep it simple, validate later 2014-11-03 23:27:21 -08:00
deadprogram
c5f8b8a869 Not using events array, so can remove 2014-11-03 22:56:52 -08:00
deadprogram
d7b8f1883c Using @zankich proposed syntax for receiving subscribed events 2014-11-03 22:54:33 -08:00
deadprogram
7045e622d9 Putting Subscribe in place 2014-11-03 21:34:46 -08:00
deadprogram
660285e24d Disconnect on Finalize 2014-11-03 19:47:41 -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