Hello everyone!
Dear @drasko @nmarcetic give some advices please.
My question concerns dynamic configuration.
Are there some ways to get data flow from new things which was added after app connection with Mainflux had established?
In more detail:
1) create Mainflux user
2) under created user create things: "a", "b", "c" and application "app" and channels.
3) Things ("a", "b", "c") start to publish data , thing("app") start to subscribe, and it works well.
4) After that user forget to add thing "d", and create it.
So how to get data flow from thing "d" without restarting subscribe thing "app"?
Thanks
*
)
go: github.com/jonathandreyer/mainflux-httpforwarder/cmd/http-forwarder imports
github.com/mainflux/mainflux/messaging/nats: package provided by github.com/mainflux/mainflux at latest version v0.11.0 but not at required version v0.11.1-0.20210209214404-f0f60e2d2a2c
mainflux-provision | {"level":"warn","message":"Method provision for token: <TOKEN> and things: [] took 54.290893ms to complete with error: failed to create bootstrap config : failed to create entity : 405 Method Not Allowed.","ts":"2021-02-21T21:38:20.369064276Z"}
mainflux-bootstrap | {"level":"warn","message":"Method bootstrap for thing with external id <EXTERNAL_ID> took 4.531134ms to complete with error: non-existent entity.","ts":"2021-02-21T21:38:20.380319273Z"}
Somebody has already had this error? For information, I have also tested with the master version and there is no error.
8888
and 8091
) seems wrong because in the .env
it is indicated 8190
. If you would like, I can create a PR to fix that in the doc repository.
.env
by environment variable MF_PROVISION_X509_PROVISIONING
. This issue has been generated by the #1221. To fix that, I propose to disable the usage of certs provisioning as it is indicated in the README.md of the provision service. @MF-Teams, what is your point of view?
MF_PROVISION_LOG_LEVEL
is duplicated) and one in the README.md environment variables MF_PROVISION_HTTP_PORT
, MF_PROVISION_SERVER_KEY
, MF_PROVISION_PASS
& MF_PROVISION_USER
is duplicated). As for the documentation repository, I can create a PR to fix that.
MF_PROVISION_BS_SVC_URL
set to http://localhost:8202/things
'cfg_id': '<THING_ID>', 'ctrl_channel_id': '', 'data_channel_id': '', 'export_channel_id': '', 'type': 'gateway’
), which are not useful for a simple device. I understand that in some of your case (e.g. a gateway) that is useful. Is it possible to disable that information? The temporary idea can be to rewrite the content of metadata of things after the provision (without this field) but that seems a bit strange to have a cleaned thing configuration.
500
and the internal error is : mainflux-provision | {"level":"warn","message":"Method mapping for token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MTQyMzYxNTIsImlhdCI6MTYxNDIwMDE1MiwiaXNzIjoibWFpbmZsdXguYXV0aCIsInN1YiI6ImFkbWluQGxvY2FsaG9zdC5sb2NhbCIsImlzc3Vlcl9pZCI6ImVmODNiZDk2LTY3NDctNGVjZS04ZmFmLTY3YzllMDExMmM2NyIsInR5cGUiOjB9.G8J2yyy47Kd9UaB0FVN7VfJWkeRl_lUo3Sl3rGJtCII took 6.51463ms to complete with error: unauthorized access : failed to fetch entity : 404 Not Found","ts":"2021-02-24T20:55:52.502075499Z"}