kylin

Results 46 comments of kylin

> element-plus ElSelect的样式变了,现在需要增加自定义宽度 怎么增加?

```python ## data/extension/hooks.py from emqx_extension.hooks import EmqxHookSdk, hooks_handler from emqx_extension.types import EMQX_CLIENTINFO_PARSE_T, EMQX_MESSAGE_PARSE_T # 继承 SDK HookSdk 类 class CustomHook(EmqxHookSdk): # 使用装饰器注册 hooks @hooks_handler() def on_client_connect(self, conninfo: EMQX_CLIENTINFO_PARSE_T = None,...

```conf ##==================================================================== ## EMQ X Hooks ##==================================================================== ##-------------------------------------------------------------------- ## Driver confs ## Setup the supported drivers ## ## Value: python2 | python3 | java exhook.drivers = python3 ## Search path...

@HJianBo 每个步骤都按照官方例子做的。 这是相关使用的版本. EMQ X Broker v4.1.1 python3.9

@HJianBo 谢谢,python 已经ok .. python 调用代码看起来很难看。 在看看官方的Java 调用的代码非常清晰。 在使用java 同样在启动插件出现问题。

![image](https://user-images.githubusercontent.com/40333954/92145021-2e4cd800-ee4a-11ea-9042-3d2aa5b8122b.png)

```java import io.emqx.extension.handler.ActionOptionConfig; import io.emqx.extension.handler.ActionOptionConfig.Keys; import io.emqx.extension.handler.DefaultCommunicationHandler; import io.emqx.extension.handler.codec.*; public class SampleHandler extends DefaultCommunicationHandler { @Override public ActionOptionConfig getActionOption() { ActionOptionConfig option = new ActionOptionConfig(); option.set(Keys.MESSAGE_PUBLISH_TOPICS, "t_sample,topic_sample"); option.set(Keys.MESSAGE_DELIVERED_TOPICS, "t_sample,topic_sample"); option.set(Keys.MESSAGE_ACKED_TOPICS,...

```conf ##==================================================================== ## EMQ X Hooks ##==================================================================== ##-------------------------------------------------------------------- ## Driver confs ## Setup the supported drivers ## ## Value: python2 | python3 | java ## Search path for scripts/library ##...

![image](https://user-images.githubusercontent.com/40333954/92142636-bb8e2d80-ee46-11ea-851e-64b4db1174a6.png)

``` PS C:\Users\Mr-Blue.DESKTOP-PBFN6KE> emqx_ctl plugins load emqx_extension_hook Load plugin emqx_extension_hook error: {emqx_extension_hook, {bad_return, {{emqx_extension_hook_app,start, [normal,[]]}, {'EXIT', {{badmatch, {error,unknown_return_format}}, [{emqx_extension_hook_app, load_all_drivers,1, [{file, "d:/a/emqx-rel/emqx-rel/_build/emqx/lib/emqx_extension_hook/src/emqx_extension_hook_app.erl"}, {line,66}]}, {emqx_extension_hook_app,start, 2, [{file, "d:/a/emqx-rel/emqx-rel/_build/emqx/lib/emqx_extension_hook/src/emqx_extension_hook_app.erl"}, {line,38}]}, {application_master, start_it_old,4,...