Commit Graph

80 Commits

Author SHA1 Message Date
Thomas Kohler e2b710bfe7
neurosky: use serialport adaptor and move driver to drivers/serial (#1061) 2024-02-12 16:27:08 +01:00
Thomas Kohler d2b01b99e0
examples: fix missing checks of return values (#1060) 2024-02-11 15:34:50 +01:00
Thomas Kohler 7f78edefcd
lint(all): fix issues of errorlint etc (#1037) 2023-11-15 20:51:52 +01:00
Thomas Kohler aee81436c9
lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
Thomas Kohler 002c75ce88
test(all): substitude assert.Nil by assert.NoError if useful (#1016) 2023-10-26 20:34:19 +02:00
Thomas Kohler f9950e247d
test(all): substitude assert.Error by assert.ErrorContains (#1014) 2023-10-25 20:21:18 +02:00
Thomas Kohler ee4368b10f
test(all): substitude assert.Errorf by assert.Error (#1011) 2023-10-21 10:08:03 +02:00
Thomas Kohler a4a8d1079c
build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
Thomas Kohler 3039b2c7cb
test(all): switch to test package stretchr testify (#1006) 2023-10-20 10:27:09 +02:00
Thomas Kohler 314a808200
ble: simplify and substitute errors.Wrap() (#958) 2023-06-14 18:27:22 +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
dlstjq7685 8b20c453e0
all: substitute deprecated ioutil methods (#923) 2023-06-10 19:25:01 +02:00
Thomas Kohler 0d0a508c60
core(build): CLI removed (#946)
* core(build): CLI removed
* adjust install instructions in doc and README
* fix master_test and remove useless/duplicated tests examples_test.go
2023-06-04 18:36:55 +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 fcdf286f1d
Fix(build): linter findings of "gosimple", "govet" and "staticcheck" (#917)
Fix also encoder and dps overflow in gopigo3 "GetMotorStatus()". Problem found by "staticcheck".
2023-05-19 14:16:22 +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
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
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